Skip to content

Instantly share code, notes, and snippets.

@marmelroy
Created March 15, 2016 05:14
Show Gist options
  • Save marmelroy/f44651fdd7dd1ae81b28 to your computer and use it in GitHub Desktop.
Save marmelroy/f44651fdd7dd1ae81b28 to your computer and use it in GitHub Desktop.
PeekPop vs Peeking and Popping
// Apple's previewing API
viewController.registerForPreviewingWithDelegate(self, sourceView: sourceView)
func previewingContext(previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -> UIViewController?
func previewingContext(previewingContext: UIViewControllerPreviewing, commitViewController viewControllerToCommit: UIViewController)
// PeekPop's previewing API
peekPop = PeekPop(viewController: self)
peekPop?.registerForPreviewingWithDelegate(self, sourceView: collectionView!)
func previewingContext(previewingContext: PreviewingContext, viewControllerForLocation location: CGPoint) -> UIViewController?
func previewingContext(previewingContext: PreviewingContext, commitViewController viewControllerToCommit: UIViewController)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment