Skip to content

Commit

Permalink
support swift2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
marty-suzuki committed Mar 27, 2016
1 parent 4908f67 commit 9744225
Show file tree
Hide file tree
Showing 11 changed files with 161 additions and 105 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ public class SAHistoryNavigationViewController: UINavigationController {
if #available(iOS 9, *) {
if traitCollection.forceTouchCapability == .Available {
interactiveTransition = UIPercentDrivenInteractiveTransition()
gestureRecognizer = SAThirdDimensionalTouchRecognizer(target: self, action: "handleThirdDimensionalTouch:", threshold: thirdDimensionalTouchThreshold)
gestureRecognizer = SAThirdDimensionalTouchRecognizer(target: self, action: #selector(SAHistoryNavigationViewController.handleThirdDimensionalTouch(_:)), threshold: thirdDimensionalTouchThreshold)
(gestureRecognizer as? SAThirdDimensionalTouchRecognizer)?.minimumPressDuration = 0.2
} else {
gestureRecognizer = UILongPressGestureRecognizer(target: self, action: "detectLongTap:")
gestureRecognizer = UILongPressGestureRecognizer(target: self, action: #selector(SAHistoryNavigationViewController.detectLongTap(_:)))
}
} else {
gestureRecognizer = UILongPressGestureRecognizer(target: self, action: "detectLongTap:")
gestureRecognizer = UILongPressGestureRecognizer(target: self, action: #selector(SAHistoryNavigationViewController.detectLongTap(_:)))
}
gestureRecognizer.delegate = self
navigationBar.addGestureRecognizer(gestureRecognizer)
Expand Down
10 changes: 5 additions & 5 deletions SAHistoryNavigationViewControllerSample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
PODS:
- MisterFusion (0.8.0)
- SAHistoryNavigationViewController (2.2.2):
- MisterFusion (1.1.0)
- SAHistoryNavigationViewController (2.3.0):
- MisterFusion

DEPENDENCIES:
- SAHistoryNavigationViewController (from `../`)

EXTERNAL SOURCES:
SAHistoryNavigationViewController:
:path: ../
:path: "../"

SPEC CHECKSUMS:
MisterFusion: 3b20851bc79eeaba59070922102f1bd2866dfe02
SAHistoryNavigationViewController: f3fa60ba148eca9c80d102425bf5d7185023f927
MisterFusion: 3e44ad5aa9c7049f944d65dc5912532b4562db69
SAHistoryNavigationViewController: 5ec66cabdd65fa1667cc7b8af182d78e3e24080e

COCOAPODS: 0.39.0

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions SAHistoryNavigationViewControllerSample/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9744225

Please sign in to comment.