Skip to content

Commit

Permalink
Converted swift 4 syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
akifumi committed Sep 24, 2017
1 parent 3f59e45 commit e626213
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions KYDrawerController.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
TargetAttributes = {
4115407B1BEF3AE100531D08 = {
CreatedOnToolsVersion = 7.1;
LastSwiftMigration = 0800;
LastSwiftMigration = 0900;
};
};
};
Expand Down Expand Up @@ -279,7 +279,8 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
};
name = Debug;
};
Expand All @@ -300,7 +301,8 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
};
name = Release;
};
Expand Down
4 changes: 2 additions & 2 deletions KYDrawerController/Classes/KYDrawerController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ open class KYDrawerController: UIViewController, UIGestureRecognizerDelegate {
// MARK: - Private Method
/**************************************************************************/

final func handlePanGesture(_ sender: UIGestureRecognizer) {
@objc final func handlePanGesture(_ sender: UIGestureRecognizer) {
_containerView.isHidden = false
if sender.state == .began {
_panStartLocation = sender.location(in: view)
Expand Down Expand Up @@ -436,7 +436,7 @@ open class KYDrawerController: UIViewController, UIGestureRecognizerDelegate {
}
}

final func didtapContainerView(_ gesture: UITapGestureRecognizer) {
@objc final func didtapContainerView(_ gesture: UITapGestureRecognizer) {
setDrawerState(.closed, animated: true)
}

Expand Down

0 comments on commit e626213

Please sign in to comment.