---
title: "springLoadingHighlightChanged(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsspringloadingdestination/springloadinghighlightchanged(_:)"
---

# springLoadingHighlightChanged(_:)

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

## Declaration

```swift
@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

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. important: Do not use highlighting as a means to determine whether spring-loading has actually been activated or deactivated. The springLoadingActivated(_:draggingInfo:) method alerts your app when spring-loading activation occurs.

## See Also

### Related Documentation

- [NSDragOperation](appkit/nsdragoperation.md)
- [NSSpringLoadingOptions](appkit/nsspringloadingoptions.md)
- [NSDraggingInfo](appkit/nsdragginginfo.md)

### Respond to Spring-loading Events

- [springLoadingActivated(_:draggingInfo:)](appkit/nsspringloadingdestination/springloadingactivated(_:dragginginfo:).md)
- [springLoadingEntered(_:)](appkit/nsspringloadingdestination/springloadingentered(_:).md)
- [springLoadingUpdated(_:)](appkit/nsspringloadingdestination/springloadingupdated(_:).md)
- [springLoadingExited(_:)](appkit/nsspringloadingdestination/springloadingexited(_:).md)
- [draggingEnded(_:)](appkit/nsspringloadingdestination/draggingended(_:).md)
