Contents

wantsPeriodicDraggingUpdates()

Asks the destination object whether it wants to receive periodic Draggingupdated(_:) messages.

Declaration

@MainActor optional func wantsPeriodicDraggingUpdates() -> Bool

Return Value

true if the destination wants to receive periodic draggingUpdated(_:) messages, false otherwise.

Discussion

If the destination returns false, these messages are sent only when the mouse moves or a modifier flag changes. Otherwise the destination gets the default behavior, where it receives periodic dragging-updated messages even if nothing changes.

See Also

Managing a Dragging Session Before an Image Is Released