뷰 컨트롤러를 present 할 때 가능한 PresentationStyle
뷰 컨트롤러를 화면에 보여주는 방법은 두 가지가 있어요.
UIModalPresentationStyle은 present
에 관련된 열거형 타입이에요.
참, present 는 모달 방식으로 띄우는 것을 가리켜요.
모달 ( Modality ) 가 궁금하신가요?
Modality - App Architecture - iOS - Human Interface Guidelines - Apple Developer
예를 들어 A 라는 VC 의 modalPresentationStyle
속성을 변경하면, A 가 present 될때의 스타일이 변경되요.
스타일은 여러가지가 있는데, 최근에 overFullScreen
이 필요해서 사용했었어요.
over
가 prefix 붙으면, presentingVC 가 뷰계층에서 사라지지 않는 것 같아요.
overCurrentContext
도 그렇거든요.다른 스타일들은 구글에 이미지 검색을 하면 바로 감이 올텐데, 특별한 것은 .currentContext
에요.