File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -108,11 +108,11 @@ class MailButton: UIButton {
108
108
}
109
109
110
110
private func addTargets( ) {
111
- self . addTarget ( self , action: " touchDown: " , forControlEvents: UIControlEvents . TouchDown)
112
- self . addTarget ( self , action: " touchUpInside: " , forControlEvents: UIControlEvents . TouchUpInside)
113
- self . addTarget ( self , action: " touchDragExit: " , forControlEvents: UIControlEvents . TouchDragExit)
114
- self . addTarget ( self , action: " touchDragEnter: " , forControlEvents: UIControlEvents . TouchDragEnter)
115
- self . addTarget ( self , action: " touchCancel: " , forControlEvents: UIControlEvents . TouchCancel)
111
+ self . addTarget ( self , action: #selector ( MailButton . touchDown ( _ : ) ) , forControlEvents: UIControlEvents . TouchDown)
112
+ self . addTarget ( self , action: #selector ( MailButton . touchUpInside ( _ : ) ) , forControlEvents: UIControlEvents . TouchUpInside)
113
+ self . addTarget ( self , action: #selector ( MailButton . touchDragExit ( _ : ) ) , forControlEvents: UIControlEvents . TouchDragExit)
114
+ self . addTarget ( self , action: #selector ( MailButton . touchDragEnter ( _ : ) ) , forControlEvents: UIControlEvents . TouchDragEnter)
115
+ self . addTarget ( self , action: #selector ( MailButton . touchCancel ( _ : ) ) , forControlEvents: UIControlEvents . TouchCancel)
116
116
}
117
117
118
118
internal func touchDown( sender: MailButton ) {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class ViewController: UICollectionViewController {
67
67
layout. parallaxHeaderAlwaysOnTop = true
68
68
layout. disableStickyHeaders = true
69
69
self . collectionView? . collectionViewLayout = layout
70
- self . collectionView? . panGestureRecognizer. addTarget ( self , action: Selector ( " handlePan: " ) )
70
+ self . collectionView? . panGestureRecognizer. addTarget ( self , action: #selector ( ViewController . handlePan ( _ : ) ) )
71
71
}
72
72
73
73
threshold = - floor( 0.3 * screenBounds. width)
You can’t perform that action at this time.
0 commit comments