Skip to content

Commit

Permalink
Remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetanzanella committed Nov 7, 2021
1 parent 36999c3 commit f3987b0
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
4 changes: 3 additions & 1 deletion Example/OverlayContainer_Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1010;
LastUpgradeCheck = 1010;
LastUpgradeCheck = 1310;
ORGANIZATIONNAME = "Gaétan Zanella";
TargetAttributes = {
E78485D62201E8E900DE64C3 = {
Expand Down Expand Up @@ -326,6 +326,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down Expand Up @@ -388,6 +389,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down
4 changes: 3 additions & 1 deletion OverlayContainer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1010;
LastUpgradeCheck = 1010;
LastUpgradeCheck = 1310;
ORGANIZATIONNAME = "Gaétan Zanella";
TargetAttributes = {
E784855B2201E4F700DE64C3 = {
Expand Down Expand Up @@ -519,6 +519,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down Expand Up @@ -583,6 +584,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
LastUpgradeVersion = "1310"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -27,6 +27,15 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E784855B2201E4F700DE64C3"
BuildableName = "OverlayContainer.framework"
BlueprintName = "OverlayContainer"
ReferencedContainer = "container:OverlayContainer.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -39,17 +48,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E784855B2201E4F700DE64C3"
BuildableName = "OverlayContainer.framework"
BlueprintName = "OverlayContainer"
ReferencedContainer = "container:OverlayContainer.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -70,8 +68,6 @@
ReferencedContainer = "container:OverlayContainer.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ private struct TranslationMetaData {
let type: TranslationType
}

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

func translationController(_ translationController: OverlayTranslationController,
Expand Down
2 changes: 1 addition & 1 deletion Source/Classes/Internal/OverlayScrollViewDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit

protocol OverlayScrollViewDelegate: class {
protocol OverlayScrollViewDelegate: AnyObject {
func overlayScrollViewWillBeginDragging(_ scrollView: UIScrollView)
func overlayScrollViewDidScroll(_ scrollView: UIScrollView)
func overlayScrollView(_ scrollView: UIScrollView,
Expand Down
2 changes: 1 addition & 1 deletion Source/Classes/Internal/OverlayTranslationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ enum OverlayTranslationPosition {
case top, bottom, inFlight, stationary
}

protocol OverlayTranslationController: class {
protocol OverlayTranslationController: AnyObject {
var lastTranslationEndNotchIndex: Int { get }
var translationHeight: CGFloat { get }
var translationPosition: OverlayTranslationPosition { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import UIKit

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

/// Asks the delegate for the number of notches in the container.
/// **Required**.
Expand Down
2 changes: 1 addition & 1 deletion Source/Classes/OverlayTransitioningDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public protocol OverlayContainerContextTransitioning: OverlayContainerTransition
/// A protocol that manages the container behavior once the user finishes dragging.
///
/// Adopt this protocol to provide your own translation behavior.
public protocol OverlayTransitioningDelegate: class {
public protocol OverlayTransitioningDelegate: AnyObject {
/// Returns the target notch policy for the specified child view controller.
func overlayTargetNotchPolicy(for overlayViewController: UIViewController) -> OverlayTranslationTargetNotchPolicy?
/// Returns the animation controller for the specified child view controller.
Expand Down

0 comments on commit f3987b0

Please sign in to comment.