Skip to content

Commit f3987b0

Browse files
committed
Remove warnings
1 parent 36999c3 commit f3987b0

File tree

8 files changed

+21
-21
lines changed

8 files changed

+21
-21
lines changed

Example/OverlayContainer_Example.xcodeproj/project.pbxproj

+3-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
isa = PBXProject;
225225
attributes = {
226226
LastSwiftUpdateCheck = 1010;
227-
LastUpgradeCheck = 1010;
227+
LastUpgradeCheck = 1310;
228228
ORGANIZATIONNAME = "Gaétan Zanella";
229229
TargetAttributes = {
230230
E78485D62201E8E900DE64C3 = {
@@ -326,6 +326,7 @@
326326
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
327327
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
328328
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
329+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
329330
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
330331
CLANG_WARN_STRICT_PROTOTYPES = YES;
331332
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -388,6 +389,7 @@
388389
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
389390
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
390391
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
392+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
391393
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
392394
CLANG_WARN_STRICT_PROTOTYPES = YES;
393395
CLANG_WARN_SUSPICIOUS_MOVE = YES;

OverlayContainer.xcodeproj/project.pbxproj

+3-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@
366366
isa = PBXProject;
367367
attributes = {
368368
LastSwiftUpdateCheck = 1010;
369-
LastUpgradeCheck = 1010;
369+
LastUpgradeCheck = 1310;
370370
ORGANIZATIONNAME = "Gaétan Zanella";
371371
TargetAttributes = {
372372
E784855B2201E4F700DE64C3 = {
@@ -519,6 +519,7 @@
519519
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
520520
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
521521
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
522+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
522523
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
523524
CLANG_WARN_STRICT_PROTOTYPES = YES;
524525
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -583,6 +584,7 @@
583584
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
584585
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
585586
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
587+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
586588
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
587589
CLANG_WARN_STRICT_PROTOTYPES = YES;
588590
CLANG_WARN_SUSPICIOUS_MOVE = YES;

OverlayContainer.xcodeproj/xcshareddata/xcschemes/OverlayContainer.xcscheme

+10-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1010"
3+
LastUpgradeVersion = "1310"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -27,6 +27,15 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "E784855B2201E4F700DE64C3"
34+
BuildableName = "OverlayContainer.framework"
35+
BlueprintName = "OverlayContainer"
36+
ReferencedContainer = "container:OverlayContainer.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
3039
<Testables>
3140
<TestableReference
3241
skipped = "NO">
@@ -39,17 +48,6 @@
3948
</BuildableReference>
4049
</TestableReference>
4150
</Testables>
42-
<MacroExpansion>
43-
<BuildableReference
44-
BuildableIdentifier = "primary"
45-
BlueprintIdentifier = "E784855B2201E4F700DE64C3"
46-
BuildableName = "OverlayContainer.framework"
47-
BlueprintName = "OverlayContainer"
48-
ReferencedContainer = "container:OverlayContainer.xcodeproj">
49-
</BuildableReference>
50-
</MacroExpansion>
51-
<AdditionalOptions>
52-
</AdditionalOptions>
5351
</TestAction>
5452
<LaunchAction
5553
buildConfiguration = "Debug"
@@ -70,8 +68,6 @@
7068
ReferencedContainer = "container:OverlayContainer.xcodeproj">
7169
</BuildableReference>
7270
</MacroExpansion>
73-
<AdditionalOptions>
74-
</AdditionalOptions>
7571
</LaunchAction>
7672
<ProfileAction
7773
buildConfiguration = "Release"

Source/Classes/Internal/HeightContraintOverlayTranslationController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ private struct TranslationMetaData {
1919
let type: TranslationType
2020
}
2121

22-
protocol HeightConstraintOverlayTranslationControllerDelegate: class {
22+
protocol HeightConstraintOverlayTranslationControllerDelegate: AnyObject {
2323
func overlayViewController(for translationController: OverlayTranslationController) -> UIViewController?
2424

2525
func translationController(_ translationController: OverlayTranslationController,

Source/Classes/Internal/OverlayScrollViewDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import UIKit
99

10-
protocol OverlayScrollViewDelegate: class {
10+
protocol OverlayScrollViewDelegate: AnyObject {
1111
func overlayScrollViewWillBeginDragging(_ scrollView: UIScrollView)
1212
func overlayScrollViewDidScroll(_ scrollView: UIScrollView)
1313
func overlayScrollView(_ scrollView: UIScrollView,

Source/Classes/Internal/OverlayTranslationController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ enum OverlayTranslationPosition {
1111
case top, bottom, inFlight, stationary
1212
}
1313

14-
protocol OverlayTranslationController: class {
14+
protocol OverlayTranslationController: AnyObject {
1515
var lastTranslationEndNotchIndex: Int { get }
1616
var translationHeight: CGFloat { get }
1717
var translationPosition: OverlayTranslationPosition { get }

Source/Classes/OverlayContainerViewControllerDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import UIKit
99

1010
/// The container delegate is responsible for defining the aspect and the behavior of the container.
11-
public protocol OverlayContainerViewControllerDelegate: class {
11+
public protocol OverlayContainerViewControllerDelegate: AnyObject {
1212

1313
/// Asks the delegate for the number of notches in the container.
1414
/// **Required**.

Source/Classes/OverlayTransitioningDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public protocol OverlayContainerContextTransitioning: OverlayContainerTransition
3030
/// A protocol that manages the container behavior once the user finishes dragging.
3131
///
3232
/// Adopt this protocol to provide your own translation behavior.
33-
public protocol OverlayTransitioningDelegate: class {
33+
public protocol OverlayTransitioningDelegate: AnyObject {
3434
/// Returns the target notch policy for the specified child view controller.
3535
func overlayTargetNotchPolicy(for overlayViewController: UIViewController) -> OverlayTranslationTargetNotchPolicy?
3636
/// Returns the animation controller for the specified child view controller.

0 commit comments

Comments
 (0)