I want to implement support for 3D touch when the controller is in Peek mode, I added a UIPreviewAction, and there is a show button, I tried to make many different options in the block of this UIPreviewAction to open the controller completely, but none of them worked. How can i do this?
override func previewActionItems() -> [UIPreviewActionItem] { let showAction = UIPreviewAction(title: "Показать", style: .Default) { [weak self] (action: UIPreviewAction, vc: UIViewController) -> Void in guard let weakSelf = self else { return; } if let _pop = weakSelf.pop { _pop() } } return [showAction] }
showViewController(previewViewController, sender: self)- Max Mikheyenko