๋ฐ์ํ
- view controller ์ฌ์ด์์ interactive transition ์ํ ๋ฉ์๋์ ๋ชจ์
- modalPresentationStyle ์์ฑ์ .custom์ผ๋ก ์ง์ ํ๊ณ transitioningDelegate ํ๋กํผํฐ๋ฅผ ์ง์ ํด์ผ ํจ
- presnet, dismiss์ ์ฌ์ฉ๋ animator ๊ฐ์ฒด๋ฅผ ๊ฐ๊ฐ ์ง์ ํ ์ ์์(push, pop ๋ ๋์ผํ๊ฒ ๊ฐ๊ฐ ์ง์ ํ ์ ์์)
- transition์ ์ฌ์ฉ๋๋ animator ๊ฐ์ฒด๋ UIViewControllerAnimatedTransitioning protocol์ ๋ฐ๋ผ์ผ ํจ
- ์ ๋๋ฉ์ด์ ์ ํ์ด๋ฐ์ ์ปจํธ๋กค ํ๊ธฐ ์ํด ์ฌ์ฉ์์ ํฐ์น ์ด๋ฒคํธ ๊ฐ์ ๋ฐ๊ฑฐ๋ ๋ค๋ฅธ ์ฌ์ฉ์ ์ธํฐ๋ ์ ์ ์ด์ฉํ๊ณ ์ถ์ ๊ฒฝ์ฐ UIViewControllerInteractiveTransitioning ํ๋กํ ์ฝ์ ์ฌ์ฉํจ
์ฐธ๊ณ ์ฌ์ดํธ ๋ฐ ๋์
https://developer.apple.com/documentation/uikit/uiviewcontrollertransitioningdelegate
728x90
๋ฐ์ํ
'๐ iOS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[iOS/Swift] ์ฑ๊ธํค ๊ฐ์ฒด ์์ฑ Singleton (0) | 2023.02.04 |
---|---|
[iOS/Swift] UIPresentationController (0) | 2023.01.29 |
[iOS/Swift] UIViewControllerAnimatedTransitioning ์ ๋ฆฌ (0) | 2023.01.29 |
[Pod/iOS] Pod ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์์ฑํ๊ณ ๊ด๋ฆฌํ๊ธฐ (0) | 2023.01.29 |
[iOS Swift] Deeplink ์ฌ์ฉํ๊ธฐ (0) | 2022.12.29 |
๋๊ธ