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 custom UINavigationController can be passed. However if a UINavigationController 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)