# CocoaHeads ## Peek & Pop @danielsaidi
## Peek & Pop * 3D Touch Devices * Peek - preview content * Pop - "commit" preview * Preview Actions
## Agenda * Real-world examples * Protocol overview * Live coding
## Real-life examples * Safari * Twitter * Netflix * Very few apps use this
## Protocol overview * UIViewControllerPreviewingDelegate * previewingContext(viewControllerForLocation:) * previewingContext(viewControllerToCommit:) * previewActionItems
## Live coding * Peek & Pop * Customize peek * Different peek/pop * Preview actions * Misc. learnings
## Sample code * https://github.com/danielsaidi/Demo_PeekPop