Avatar
Kishikawa Katsumi 3/2/2023 10:03 PM
Modalの画面遷移アニメーションをUIViewControllerAnimatedTransitioningとUIPercentDrivenInteractiveTransitionを使ってカスタマイズする、というのが良くやる方法です。 https://thorntech.com/ios-tutorial-close-modal-dragging/ ^ これが基本形で、 https://qiita.com/keisei_1092/items/1a4e22a189c2c5dfdf7c ^ NavigationControllerがある場合、 https://qiita.com/trueSuperior/items/59c971042440393baf99 ScrollViewがある場合、 とこの辺りを参考にして実装できると思います。
Ever since iOS 7, users have been swiping from the left edge of the screen to go back. This swipe-back feature is interactive, so the animation tracks as
UIKitでは、ViewController→ViewControllerの遷移をカスタムできます。 上の画像のようにボタンを押すと下から出てきて 引っ張ると閉じることができるモーダルを実装してみます。 当初こちらのチュート...
ごきげんよ〜 ( ∴ )/ ぼくたちのスマホのディスプレイが巨大化していく一方で、モーダルウィンドウの上部に配置されがちなもどるボタンはユーザーの指からどんどん離れていってます。モーダルウィンドウは閉じて本来の作業に戻ることが目的であ...
t_naruhodo 1