PopupViewControllerProtocol

@MainActor
public protocol PopupViewControllerProtocol : ViewControllerProtocol

弹窗视图控制器协议,可覆写

  • 弹窗内容容器视图,高度(或宽度,视位置而定)需内容撑开,内容子视图需要添加到此视图上

    Declaration

    Swift

    @MainActor
    var popupView: UIView { get }
  • 弹窗背景视图,占满view,非内容视图可添加到此视图上

    Declaration

    Swift

    @MainActor
    var popupBackground: UIView { get }
  • 当前只读弹窗配置,自动调用setupPopupConfiguration

    Declaration

    Swift

    @MainActor
    var popupConfiguration: PopupConfiguration { get }
  • 初始化弹窗配置,默认空实现

    Declaration

    Swift

    @MainActor
    func setupPopupConfiguration(_ configuration: PopupConfiguration)
  • 渲染弹窗内容视图,setupSubviews之前调用,默认空实现

    Declaration

    Swift

    @MainActor
    func setupPopupView()
  • 渲染弹窗内容视图布局,setupSubviews之前调用,默认空实现

    Declaration

    Swift

    @MainActor
    func setupPopupLayout()
  • 弹窗包装到导航控制器,同步设置导航控制器转场动画,弹窗需要push时使用,默认已实现

    Declaration

    Swift

    @MainActor
    func wrappedNavigationController() -> UINavigationController

Available where Self: UIViewController

  • popupView Default implementation

    Default Implementation

    弹窗内容容器视图,高度(或宽度,视位置而定)需内容撑开,内容子视图需要添加到此视图上

    Declaration

    Swift

    @MainActor
    public var popupView: UIView { get }
  • popupBackground Default implementation

    Default Implementation

    弹窗背景视图,占满view,非内容视图可添加到此视图上

    Declaration

    Swift

    @MainActor
    public var popupBackground: UIView { get }
  • popupConfiguration Default implementation

    Default Implementation

    当前只读弹窗配置,自动调用setupPopupConfiguration

    Declaration

    Swift

    @MainActor
    public var popupConfiguration: PopupConfiguration { get }
  • setupPopupConfiguration(_:) Default implementation

    Default Implementation

    初始化弹窗配置,默认空实现

    Declaration

    Swift

    @MainActor
    public func setupPopupConfiguration(_ configuration: PopupConfiguration)
  • setupPopupView() Default implementation

    Default Implementation

    渲染弹窗内容视图,setupSubviews之前调用,默认空实现

    Declaration

    Swift

    @MainActor
    public func setupPopupView()
  • setupPopupLayout() Default implementation

    Default Implementation

    渲染弹窗内容视图布局,setupSubviews之前调用,默认空实现

    Declaration

    Swift

    @MainActor
    public func setupPopupLayout()
  • wrappedNavigationController() Default implementation

    Default Implementation

    弹窗包装到导航控制器,同步设置导航控制器转场动画,弹窗需要push时使用,默认已实现

    Declaration

    Swift

    @MainActor
    public func wrappedNavigationController() -> UINavigationController