TapGestureRecognizer
@MainActor
open class TapGestureRecognizer : UITapGestureRecognizer
支持高亮状态的点击手势
-
是否是高亮状态,默认NO
Declaration
Swift
@MainActor open var isHighlighted: Bool { get set }
-
自定义高亮状态变化时处理句柄
Declaration
Swift
@MainActor open var highlightedChanged: ((TapGestureRecognizer, Bool) -> Void)? { get set }
-
高亮状态时view的透明度,默认0不生效
Declaration
Swift
@MainActor open var highlightedAlpha: CGFloat { get set }
-
自定义禁用状态变化时处理句柄
Declaration
Swift
@MainActor open var disabledChanged: ((TapGestureRecognizer, Bool) -> Void)? { get set }
-
禁用状态时view的透明度,默认0不生效
Declaration
Swift
@MainActor open var disabledAlpha: CGFloat { get set }
-
Undocumented
Declaration
Swift
@MainActor override open var isEnabled: Bool { get set }
-
Undocumented
Declaration
Swift
@MainActor override open var state: UIGestureRecognizer.State { get set }
-
Undocumented
Declaration
Swift
@MainActor override open func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent)
-
Undocumented
Declaration
Swift
@MainActor override open func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent)
-
Undocumented
Declaration
Swift
@MainActor override open func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent)
-
Undocumented
Declaration
Swift
@MainActor override open func reset()