Skip to content

ScreenPresentationStyle

ohitsdaniel edited this page Apr 29, 2021 · 2 revisions

ScreenPresentationStyle

Defines how a screen is presented

public enum ScreenPresentationStyle: Hashable 

Inheritance

Hashable

Enumeration Cases

push

The screen is presented as a push, analogous to UINavigationController.pushViewController(_ vc:​)

case push

sheet

The screen is presented as a sheet, analogous to UIViewController.present(vc:​, animated:​, completion:​)

case sheet(allowsPush: Bool = true)

If allowsPush: is set to false, the sheet content is not embedded in a NavigationView and therefore pushes do not work.

Clone this wiki locally