MaskPopupViewAnimationProtocol
public protocol MaskPopupViewAnimationProtocol : AnyObject
Undocumented
-
初始化配置动画驱动器
Declaration
Swift
func setup(contentView: UIView, backgroundView: MaskBackgroundView, containerView: UIView)
Parameters
contentView
自定义的弹框视图
backgroundView
背景视图
containerView
展示弹框的视图
Return Value
void
-
处理展示动画
Declaration
Swift
func display(contentView: UIView, backgroundView: MaskBackgroundView, animated: Bool, completion: @escaping () -> Void)
Parameters
contentView
自定义的弹框视图
backgroundView
背景视图
animated
是否需要动画
completion
动画完成后的回调
Return Value
void
-
处理消失动画
Declaration
Swift
func dismiss(contentView: UIView, backgroundView: MaskBackgroundView, animated: Bool, completion: @escaping () -> Void)
Parameters
contentView
自定义的弹框视图
backgroundView
背景视图
animated
是否需要动画
completion
动画完成后的回调