Getting Started with 3D Touch | Peek and Pop describes "peek" preview and "optional navigation" (pop.) But I can't find any way to implement peek -- by implementing:
- (UIViewController*)previewingContext:(id<UIViewControllerPreviewing>)previewingContext viewControllerForLocation:(CGPoint)location
without the pop gesture also being implemented. If I fail to implement the commit callback:
- (void) previewingContext:(id<UIViewControllerPreviewing>)previewingContext commitViewController:(UIViewController *)viewControllerToCommit
it still dismisses my peek/preview view controller after providing a second haptic feedback vibration.
Since Apple describes it as optional, am I missing something?
(I'm trying to implement Contacts app like behavior and I do realize there's no API to do this. My thought was to do this within the peek/preview, but pop/commit is getting in the way.)