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动画完成后的回调
View on GitHub
MaskPopupViewAnimationProtocol Protocol Reference