NavigationBarConfiguration

@MainActor
public struct NavigationBarConfiguration

导航栏配置,兼容AnyView和UIKit对象

  • Undocumented

    Declaration

    Swift

    @MainActor
    public var leading: Any?
  • Undocumented

    Declaration

    Swift

    @MainActor
    public var title: Any?
  • Undocumented

    Declaration

    Swift

    @MainActor
    public var trailing: Any?
  • Undocumented

    Declaration

    Swift

    @MainActor
    public var background: Any?
  • Undocumented

    Declaration

    Swift

    @MainActor
    public var style: NavigationBarStyle?
  • Undocumented

    Declaration

    Swift

    @MainActor
    public var appearance: (@MainActor @Sendable () -> NavigationBarAppearance)?
  • Undocumented

    Declaration

    Swift

    @MainActor
    public var customize: (@MainActor @Sendable (UIViewController) -> Void)?
  • Undocumented

    Declaration

    Swift

    @MainActor
    public init(
        leading: Any? = nil,
        title: Any? = nil,
        trailing: Any? = nil,
        background: Any? = nil,
        style: NavigationBarStyle? = nil,
        appearance: (@MainActor @Sendable () -> NavigationBarAppearance)? = nil,
        customize: (@MainActor @Sendable (UIViewController) -> Void)? = nil
    )
  • Undocumented

    Declaration

    Swift

    @MainActor
    public func configure(
        viewController: UIViewController
    )