iOS/Swift

Swift) UIkit 화면 이동 - FullScreen

Brad_Heo 2024. 5. 21. 16:47

FullScreen

테스트 환경: iOS 13
기본 화면 이동시 sheet로 보여지게 되는데 전체 화면으로 이동하기 위해 style을 조정해야한다.

let viewcontroller = UIViewController
vc.modalPresentationStyle = .fullScreen
self.prsent(vc, animated: true, completion: nil)

참고자료

https://stackoverflow.com/questions/56435510/presenting-modal-in-ios-13-fullscreen

'iOS > Swift' 카테고리의 다른 글

Swift) UUID + KeyChain  (0) 2024.05.31
Swift) Protocol을 이용한 코드 개선  (0) 2024.05.24
Swift) Continuations 활용  (0) 2024.05.20
클로저 (Closures) - 클로저 표현  (0) 2023.04.25
콜렉션 타입(Collection Types) - 셋(Sets)  (0) 2023.04.21