NavigationControllerMode

@objc(PESDKNavigationControllerMode)
public enum NavigationControllerMode : Int

This mode defines the behavior if a MediaEditViewControlleror one of its ancestors is a child of a UINavigationController.

  • If there’s a UINavigationController use its UINavigationBar at the top of the screen to display the MediaEditViewController‘s Toolbar which is normally displayed at the bottom of the screen if there’s no UINavigationController present.

    Declaration

    Swift

    case useNavigationBar
  • If there’s a UINavigationController keep the MediaEditViewController‘s Toolbar at the bottom of the screen.

    Declaration

    Swift

    case useToolbar
  • When a MediaEditViewController is part of a custom container view controller, which is presented in an UINavigationController, the MediaEditViewController will not be able to update the navigation controller’s navigation bar by default because that is the job of the immediate child of the navigation controller. This mode is identical to the useNavigationBar mode except that the parent view controller’s UINavigationItem will be altered instead of the MediaEditViewController‘s own navigation item so that the UINavigationBar can be used to display the Toolbar even when embedded in a custom container view controller.

    Declaration

    Swift

    case useNavigationBarAndParentNavigationItem