Contents

springLoadingHighlightChanged(_:)

Updates the destination’s user interface to display a new highlighting style during a spring-loading operation.

Declaration

@MainActor func springLoadingHighlightChanged(_ draggingInfo: any NSDraggingInfo)

Parameters

  • draggingInfo:

    An object of type NSDraggingInfo, which provides information about the drag event, including a highlighting style to apply.

Discussion

During a spring-loaded operation, a destination may initiate animated highlighting to visually cue the user that spring-loading has been engaged or disengaged. This method is called as different stages of this animation are reached, providing an opportunity to change the highlighting style. Check the springLoadingHighlight property of the draggingInfo object to determine the style of highlighting to apply. Then, update the destination’s user interface accordingly.

See Also

Related Documentation

Respond to Spring-loading Events