iosuitableviewqlpreviewcontroller3dtouch

3D Touch Peek View Will not slide up for action


I have a table view. On 3D Touch I preview a pdf in a QLPreviewController. The peek and the pop work as intended.

For some reason I cannot get the preview controller view to slide up and show my action items. I am returning a valid array of UIPreviewActionItems in (NSArray<id<UIPreviewActionItem>> *)previewActionItems.

For some reason when peek is displayed, no amount of sliding upward moves the preview and no action items are made visible as I see in other apps.


Solution

  • I was stuck on this for a while too. Make sure your -previewActionItems method is in the view controller that you are previewing.

    Documentation for -previewActionItems