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] } 
  • suppose showViewController(previewViewController, sender: self) - Max Mikheyenko
  • @MaxMikheyenko No, it did not work, I tried at the very beginning - Alexander Khitev
  • and you have there navigationController? or just one root controller and that's it? - Max Mikheyenko
  • @MaxMikheyenko yes there is a navigationController, the problem is that the controller is already shown in peek mode, if you press harder, it will open in full screen, but the task requires that you can open the controller with a button - Alexander Khitev
  • And if you create another copy of the same controller and show it? - Max Mikheyenko

0