PointerInteraction
An interaction that enables support for effects on a view or customizes the pointer’s appearance within a region of an app.
public class PointerInteraction
Inheritance
Initializers
init(delegate:)
Initializes a pointer interaction object with a specified delegate object.
public init(delegate: PointerInteractionDelegate?)
Properties
delegate
An object that responds to pointer movements.
public private(set) weak var delegate: PointerInteractionDelegate?
isEnabled
A boolean value that indicates whether the pointer interaction is enabled.
public var isEnabled: Bool = true
view
public private(set) weak var view: View?
Methods
invalidate()
Causes the interaction to update the pointer in response to an event.
public func invalidate()
didMove(to:)
public func didMove(to view: View?)
willMove(to:)
public func willMove(to view: View?)