PopupMenuAnimationManager
@MainActor
open class PopupMenuAnimationManager : NSObject
extension PopupMenuAnimationManager: @preconcurrency CAAnimationDelegate
弹出菜单动画管理器
-
动画类型,默认style
Declaration
Swift
@MainActor open var style: PopupMenuAnimationStyle { get set }
-
显示动画,自定义可用
Declaration
Swift
@MainActor open var showAnimation: CAAnimation? { get set }
-
隐藏动画,自定义可用
Declaration
Swift
@MainActor open var dismissAnimation: CAAnimation? { get set }
-
动画时间,默认0.25
Declaration
Swift
@MainActor open var duration: CFTimeInterval { get set }
-
动画视图
Declaration
Swift
@MainActor open weak var animationView: UIView?
-
Undocumented
Declaration
Swift
@MainActor open func displayShowAnimationCompletion(_ completion: (@MainActor @Sendable () -> Void)? = nil)
-
Undocumented
Declaration
Swift
@MainActor open func displayDismissAnimationCompletion(_ completion: (@MainActor @Sendable () -> Void)? = nil)
-
Undocumented
Declaration
Swift
@MainActor open func animationDidStop(_ anim: CAAnimation, finished flag: Bool)