Skip to content

Commit 217cd82

Browse files
seedanteseedante
authored and
seedante
committed
continue to add access control.
1 parent 1b6004a commit 217cd82

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Classes/SDEPopPinchInteractionController.swift

+5-6
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import UIKit
1010

1111
class SDEPopPinchInteractionController: UIPercentDrivenInteractiveTransition {
12-
var pinchGesture = UIPinchGestureRecognizer()
13-
var topVC: UICollectionViewController
14-
unowned var holder: SDENavigationControllerDelegate
12+
private var pinchGesture = UIPinchGestureRecognizer()
13+
private var topVC: UICollectionViewController
14+
private unowned var holder: SDENavigationControllerDelegate
1515

1616
init(toVC topVC: UICollectionViewController, holder: SDENavigationControllerDelegate) {
1717
self.topVC = topVC
@@ -20,12 +20,12 @@ class SDEPopPinchInteractionController: UIPercentDrivenInteractiveTransition {
2020
addPinchGestureOnView(self.topVC.view)
2121
}
2222

23-
func addPinchGestureOnView(view: UIView){
23+
private func addPinchGestureOnView(view: UIView){
2424
pinchGesture.addTarget(self, action: "sde_handlePinch:")
2525
view.addGestureRecognizer(pinchGesture)
2626
}
2727

28-
func sde_handlePinch(gesture: UIPinchGestureRecognizer){
28+
private func sde_handlePinch(gesture: UIPinchGestureRecognizer){
2929
switch gesture.state{
3030
case .Began:
3131
if gesture.scale < 1.0{
@@ -53,7 +53,6 @@ class SDEPopPinchInteractionController: UIPercentDrivenInteractiveTransition {
5353
}
5454

5555
deinit{
56-
print("deinit")
5756
pinchGesture.view?.removeGestureRecognizer(pinchGesture)
5857
}
5958
}

0 commit comments

Comments
 (0)