NavigationStyle
public enum NavigationStyle
List of supported navigation styles.
-
Presents the view controller as a stack. If no
UINavigationControlleris present, it creates one, sets the view controller as rootViewController of that navigation controller and presents it as a.fullScreenover the stack. An optional customUINavigationControllercan be passed. However if aUINavigationControlleris already present on the top most view controller in the hierarchy, the value passed is discarded.Declaration
Swift
case stack(_: UINavigationController? = nil, style: UIModalPresentationStyle = .overCurrentContext) -
Presents the view controller in a modal way.
UIModalPresentationStyledefaults to.fullScreen.Declaration
Swift
case modal(style: UIModalPresentationStyle = .fullScreen)
View on GitHub
NavigationStyle Enumeration Reference