---
title: "springLoadingActivated(_:draggingInfo:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsspringloadingdestination/springloadingactivated(_:dragginginfo:)"
---

# springLoadingActivated(_:draggingInfo:)

Responds to the activation or deactivation of spring-loading on a destination.

## Declaration

```swift
@MainActor func springLoadingActivated(_ activated: Bool, draggingInfo: any NSDraggingInfo)
```

## Parameters

- `activated`: A Boolean value indicating whether spring-loading has been activated on the destination. doc://com.apple.documentation/documentation/Swift/true indicates that spring-loading has been activated. doc://com.apple.documentation/documentation/Swift/false indicates that spring-loading has been deactivated.
- `draggingInfo`: An NSDraggingInfo object, which provides information about the drag event, including the dragged data.

## Discussion

Discussion Typically, spring-loading is fully activated when a hover timeout occurs or the user finishes force clicking on a destination object to initiate spring-loading. In these cases, the springLoadingActivated:draggingInfo: method is only called once with an activated parameter value of true. However, if the destination is configured with continuous activation (NSSpringLoadingOptions was set to NSSpringLoadingContinuousActivation), then the springLoadingActivated:draggingInfo: method is called twice. First, it’s called with an activated parameter value of true when a hover timeout occurs or the user begins force clicking on a destination object to initiate spring-loading. Then, it’s called again with an activated parameter value of false when the hover exits the destination’s bounds or the user finishes force clicking on the destination object.

## See Also

### Related Documentation

- [Drag and Drop](appkit/drag-and-drop.md)
- [NSSpringLoadingOptions](appkit/nsspringloadingoptions.md)
- [NSDraggingInfo](appkit/nsdragginginfo.md)

### Respond to Spring-loading Events

- [springLoadingHighlightChanged(_:)](appkit/nsspringloadingdestination/springloadinghighlightchanged(_:).md)
- [springLoadingEntered(_:)](appkit/nsspringloadingdestination/springloadingentered(_:).md)
- [springLoadingUpdated(_:)](appkit/nsspringloadingdestination/springloadingupdated(_:).md)
- [springLoadingExited(_:)](appkit/nsspringloadingdestination/springloadingexited(_:).md)
- [draggingEnded(_:)](appkit/nsspringloadingdestination/draggingended(_:).md)
