<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSpringLoadingDestination/springLoadingHighlightChanged(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSSpringLoadingDestination(im)springLoadingHighlightChanged:"
  },
  "title" : "springLoadingHighlightChanged(_:)"
}
-->

# springLoadingHighlightChanged(_:)

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

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

> Important:
> Do not use highlighting as a means to determine whether spring-loading has actually been activated or deactivated. The ``doc://com.apple.appkit/documentation/AppKit/NSSpringLoadingDestination/springLoadingActivated(_:draggingInfo:)`` method alerts your app when spring-loading activation occurs.

## See Also

[`NSDragOperation`](/documentation/AppKit/NSDragOperation)

A group of constants that represent which operations the dragging source can perform on dragging items.

[`NSSpringLoadingOptions`](/documentation/AppKit/NSSpringLoadingOptions)

These constants denote the type of spring-loading behavior configured for the destination object.

[`NSDraggingInfo`](/documentation/AppKit/NSDraggingInfo)

A set of methods that supply information about a dragging session.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)