Sitemap

View Controller Presentation Changes in iOS 13

14 min readJun 7, 2019

--

Defaults to UIModalPresentationAutomatic on iOS starting in iOS 13.0, and UIModalPresentationFullScreen on previous versions.

By default UIViewController resolves UIModalPresentationAutomatic to UIModalPresentationPageSheet, but other system-provided view controllers may resolve UIModalPresentationAutomatic to other concrete presentation styles.

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Adaptivity Settings Screen on iPhone XS: Xcode 10 build on iOS12, Xcode 10 build on iOS 13, and Xcode 11 build on iOS 13
Modally-presented Settings screen presenting a modal INUIAddVoiceShortcutViewController on iOS 13
Adaptivity presenting a form sheet on iPhone XS: Xcode 10 build on iOS12, and Xcode 11 build on iOS 13
Press enter or click to view image in full size
Press enter or click to view image in full size
Adaptivity presenting a form sheet on 11" iPad Pro: Xcode 10 build on iOS12, and Xcode 11 build on iOS 13
Press enter or click to view image in full size
Press enter or click to view image in full size
Adaptivity presenting a page sheet on 11" iPad Pro with default (Large) content size category: Xcode 10 build on iOS12, and Xcode 11 build on iOS 13
Press enter or click to view image in full size
Press enter or click to view image in full size
Adaptivity presenting a page sheet on 11" iPad Pro with default (Large) content size category: Xcode 10 build on iOS12, and Xcode 11 build on iOS 13
Press enter or click to view image in full size
Press enter or click to view image in full size
Adaptivity presenting a page sheet on 11" iPad Pro with ExtraExtraExtraLarge content size category: Xcode 10 build on iOS12, and Xcode 11 build on iOS 13
Press enter or click to view image in full size
Press enter or click to view image in full size
Adaptivity presenting a page sheet on 11" iPad Pro with ExtraExtraExtraLarge content size category: Xcode 10 build on iOS12, and Xcode 11 build on iOS 13

By default UIViewController resolves UIModalPresentationAutomatic to UIModalPresentationPageSheet, but other system-provided view controllers may resolve UIModalPresentationAutomatic to other concrete presentation styles.

Press enter or click to view image in full size
Adaptivity default modal presentation of Split View Controller on 11" iPad running iOS 13
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Interactive dismissal of modally-presented view controller on iPhone XS
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Adding a Timer Profile to Pommie on iPhone X running iOS 13

modalInPresentation is set on the view controller when you wish to force the presentation hosting the view controller into modal behavior. When this is active, the presentation will prevent interactive dismiss and ignore events outside of the presented view controller’s bounds until this is set to NO.

--

--

Geoff Hackworth
Geoff Hackworth

Written by Geoff Hackworth

Independent and freelance software developer for iPhone, iPad and Mac