PopupConfiguration

open class PopupConfiguration

弹窗配置类

  • 弹出视图的内边距,随位置变化,默认0

    Declaration

    Swift

    open var padding: CGFloat
  • 弹出视图的圆角半径,随位置变化,默认0无圆角

    Declaration

    Swift

    open var cornerRadius: CGFloat
  • 弹出视图的背景颜色,默认白色

    Declaration

    Swift

    open var backgroundColor: UIColor?
  • 动画边缘方向,默认bottom,与centerAnimation互斥

    Declaration

    Swift

    open var animationEdge: UIRectEdge
  • 是否中心弹窗动画,默认false,与animationEdge互斥

    Declaration

    Swift

    open var centerAnimation: Bool
  • 中心弹窗时是否执行alert动画,默认true,否则fade动画,仅centerAnimation生效

    Declaration

    Swift

    open var alertAnimation: Bool
  • 动画持续时间,必须大于0,默认同completionSpeed为0.35秒

    Declaration

    Swift

    open var animationDuration: TimeInterval
  • 动画完成速度,默认0.35

    Declaration

    Swift

    open var completionSpeed: CGFloat
  • 是否启用交互pan手势进行pop|dismiss,默认false,仅animationEdge生效

    Declaration

    Swift

    open var interactEnabled: Bool
  • 是否启用screenEdge交互手势进行pop|dismiss,默认false,仅animationEdge为left|right时生效

    Declaration

    Swift

    open var interactScreenEdge: Bool
  • 是否显示暗色背景,默认YES

    Declaration

    Swift

    open var showDimming: Bool
  • 是否可以点击暗色背景关闭,默认YES

    Declaration

    Swift

    open var dimmingClick: Bool
  • 是否执行暗黑背景透明度动画,默认YES

    Declaration

    Swift

    open var dimmingAnimated: Bool
  • 暗色背景颜色,默认黑色,透明度0.5

    Declaration

    Swift

    open var dimmingColor: UIColor?
  • 设置点击暗色背景关闭时是否执行动画,默认true

    Declaration

    Swift

    open var dismissAnimated: Bool
  • 设置弹窗关闭完成回调(交互和非交互都会触发),默认nil

    Declaration

    Swift

    open var dismissCompletion: (@MainActor @Sendable () -> Void)?
  • Undocumented

    Declaration

    Swift

    public init()