Modal Presentation styles are used when you are transitioning from one view controller to another. There are 2 ways of achieving this customization. One is through code and another through Interface Builder(using segues). This effect is achieved by settingmodalPresentationStyle
variable to an instance of UIModalPresentationStyle
enum. modalPresentationStyle
property is a class variable of UIViewController
and is used to specify how a ViewController
is presented on screen.
Always remember the following mention from Apple.
In a horizontally compact environment, modal view controllers are always presented full-screen. In a horizontally regular environment, there are several different presentation options.