NavigationStyle
public enum NavigationStyle
List of supported navigation styles.
-
Presents the view controller as a stack. If no
UINavigationController
is present, it creates one, sets the view controller as rootViewController of that navigation controller and presents it as a.fullScreen
over the stack. An optional customUINavigationController
can be passed. However if aUINavigationController
is 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.
UIModalPresentationStyle
defaults to.fullScreen
.Declaration
Swift
case modal(style: UIModalPresentationStyle = .fullScreen)