これは、セグエまたはpresentViewController
メソッドの表示アクションのデフォルトの表示/非表示アニメーションではなく、インタラクティブに見えます。これを実装するには、独自のアニメーター クラスをカスタマイズする必要があります。
presentViewController
/を使用しdismissViewController
ないUINavigationController
場合は、 を参照してくださいUIViewController
。transitioningDelegate
を使用する場合はUINavigationController
、UINavigationController
のデリゲート メソッドを参照してください。
func navigationController(_ navigationController: UINavigationController, animationControllerForOperation operation: UINavigationControllerOperation, fromViewController fromVC: UIViewController, toViewController toVC: UIViewController) -> UIViewControllerAnimatedTransitioning?
func navigationController(_ navigationController: UINavigationController, interactionControllerForAnimationController animationController: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning?
残念ながら、これは iOS のアニメーション デザインでは簡単なことではありません。この分野に慣れていない場合は、Github で既に設計されているアニメーター クラスを使用できます。