私はSFSafariViewController
で観察できる動作を真似しようとしています。提示されると、プッシュトランジションアニメーションは、ルートUINavigationalController
のように使用されます。エッジパンを右にスワイプすると、ポップトランジションが続きます。ナビゲーションコントローラを使用せずにUIViewControllerをプッシュするにはどうすればいいですか?
let url = URL(string: "http://google.com")!
let safari = SFSafariViewController(url: url)
present(safari, animated: true, completion: nil)
しかし、他のUIViewController
で動作するには同じ遷移が必要です。 CATransition
を使用して
let storyboard = UIStoryboard(name: "Place", bundle: nil)
let controller = storyboard.instantiateInitialViewController()
present(controller!, animated: true, completion: nil)
。この[チュートリアル](https://www.raywenderlich.com/146692/ios-animation-tutorial-custom-view-controller-presentation-transitions-2)をご覧ください。役立つかもしれません。 – Ayazmon