Skip to content

Commit 1414a07

Browse files
committed
Merge remote-tracking branch 'origin/PinchPopTransition' into PinchPopTransition
2 parents 6449152 + 661c9df commit 1414a07

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ Drag files in "Classes" folder into your project.
1919
![set the delegate](https://raw.githubusercontent.com/seedante/SDECollectionViewAlbumTransition/PinchPopTransition/Config2.png)
2020

2121

22-
- At the last, add a line code in your UICollectionView's delegate:
22+
- At the last, add several lines code in your UICollectionView's delegate:
2323

2424
override func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
2525
self.selectedIndexPath = indexPath
26+
let layoutAttributes = self.collectionView!.layoutAttributesForItemAtIndexPath(indexPath)
27+
let areaRect = self.collectionView!.convertRect(layoutAttributes!.frame, toView: self.collectionView!.superview)
28+
let toVC = ......
29+
toVC.coverRectInSuperview = areaRect
2630
...
2731
}
2832
@@ -31,7 +35,8 @@ Drag files in "Classes" folder into your project.
3135

3236
## Requirements
3337

34-
- iOS 7.0+
38+
- iOS 8.0+
39+
- Swift 2.0
3540

3641
Thanks for [@CezaryKopacz](https://github.com/CezaryKopacz/CKWaveCollectionViewTransition), [@ColinEberhardt](https://github.com/ColinEberhardt/VCTransitionsLibrary). I learn a lot from their repo.
3742
And thanks for [ Vincent Ngo](http://www.raywenderlich.com/94565/how-to-create-an-ios-book-open-animation-part-1) very much, I find the key to resolve the problem of pinching to push.

0 commit comments

Comments
 (0)