34,333
edits
Changes
→Implementing the Pinch Recognizer
let layout = self.collectionView?.collectionViewLayout
as ! MyFlowLayout
if gesture.state == UIGestureRecognizerState.Began
<pre>
let layout = self.collectionView?.collectionViewLayout as ! MyFlowLayout
</pre>