File tree 2 files changed +5
-6
lines changed
SDECollectionViewAlbumTransition.xcodeproj/project.xcworkspace/xcuserdata/seedante.xcuserdatad
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 9
9
import UIKit
10
10
11
11
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
15
15
16
16
init ( toVC topVC: UICollectionViewController , holder: SDENavigationControllerDelegate ) {
17
17
self . topVC = topVC
@@ -20,12 +20,12 @@ class SDEPopPinchInteractionController: UIPercentDrivenInteractiveTransition {
20
20
addPinchGestureOnView ( self . topVC. view)
21
21
}
22
22
23
- func addPinchGestureOnView( view: UIView ) {
23
+ private func addPinchGestureOnView( view: UIView ) {
24
24
pinchGesture. addTarget ( self , action: " sde_handlePinch: " )
25
25
view. addGestureRecognizer ( pinchGesture)
26
26
}
27
27
28
- func sde_handlePinch( gesture: UIPinchGestureRecognizer ) {
28
+ private func sde_handlePinch( gesture: UIPinchGestureRecognizer ) {
29
29
switch gesture. state{
30
30
case . Began:
31
31
if gesture. scale < 1.0 {
@@ -53,7 +53,6 @@ class SDEPopPinchInteractionController: UIPercentDrivenInteractiveTransition {
53
53
}
54
54
55
55
deinit {
56
- print ( " deinit " )
57
56
pinchGesture. view? . removeGestureRecognizer ( pinchGesture)
58
57
}
59
58
}
You can’t perform that action at this time.
0 commit comments