NavigatorOptions

public struct NavigatorOptions : OptionSet, Sendable

控制器导航选项定义

  • Declaration

    Swift

    public let rawValue: Int
  • 嵌入导航控制器并使用present转场方式

    Declaration

    Swift

    public static let embedInNavigation: NavigatorOptions
  • 指定push转场方式,仅open生效,默认自动判断转场方式

    Declaration

    Swift

    public static let transitionPush: NavigatorOptions
  • 指定present转场方式,仅open生效

    Declaration

    Swift

    public static let transitionPresent: NavigatorOptions
  • 指定pop转场方式,仅close生效

    Declaration

    Swift

    public static let transitionPop: NavigatorOptions
  • 指定dismiss转场方式,仅close生效

    Declaration

    Swift

    public static let transitionDismiss: NavigatorOptions
  • 同时pop顶部控制器,仅push|pop生效,默认不pop控制器

    Declaration

    Swift

    public static let popTop: NavigatorOptions
  • 同时pop顶部2个控制器,仅push|pop生效

    Declaration

    Swift

    public static let popTop2: NavigatorOptions
  • 同时pop顶部3个控制器,仅push|pop生效

    Declaration

    Swift

    public static let popTop3: NavigatorOptions
  • 同时pop顶部4个控制器,仅push|pop生效

    Declaration

    Swift

    public static let popTop4: NavigatorOptions
  • 同时pop顶部5个控制器,仅push|pop生效

    Declaration

    Swift

    public static let popTop5: NavigatorOptions
  • 同时pop顶部6个控制器,仅push|pop生效

    Declaration

    Swift

    public static let popTop6: NavigatorOptions
  • 同时pop到根控制器,仅push|pop生效

    Declaration

    Swift

    public static let popToRoot: NavigatorOptions
  • 指定present样式为fullScreen,仅present生效,默认自动使用系统present样式

    Declaration

    Swift

    public static let styleFullScreen: NavigatorOptions
  • 指定present样式为pageSheet,仅present生效

    Declaration

    Swift

    public static let stylePageSheet: NavigatorOptions
  • 指定present样式为custom,仅present生效

    Declaration

    Swift

    public static let styleCustom: NavigatorOptions
  • Declaration

    Swift

    public init(rawValue: Int)