Presentation Styles
When you present a standard view controller, it slides up to cover the window. This is the default presentation style. The presentation style determines the appearance of the view controller as well as how the user can interact with it. Here are some of the more common presentation styles that you will encounter:
|
.automatic |
Presents the view controller using a style chosen by the system. Typically this results in a .formSheet presentation. This is the default presentation style. |
|
.formSheet |
Presents the view controller centered on top of the existing content. |
|
.fullScreen |
Presents the view controller over the entire application. |
|
.overFullScreen |
Similar to .fullScreen except ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access