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

# springLoadingEntered(_:)

Returns whether to enable or disable spring-loading when a drag enters the bounds of the spring-loading destination.

## Declaration

```swift
@MainActor optional func springLoadingEntered(_ draggingInfo: any NSDraggingInfo) -> NSSpringLoadingOptions
```

## Parameters

- `draggingInfo`: An object of type NSDraggingInfo, which provides information about the drag event, including the dragged data.

## Return Value

Return Value A value of type NSSpringLoadingOptions to enable or disable spring-loading. Returning a value of NSSpringLoadingEnabled enables typical spring-loading behavior that is appropriate in most cases.

## Discussion

Discussion This method is called when a drag enters the bounds of the spring-loading destination. It returns a value of type NSSpringLoadingOptions to enable or disable spring-loading for the destination. This method provides an opportunity to perform work in preparation for spring-loading becoming engaged. Note that you must implement either this method or springLoadingUpdated(_:) to enable spring-loading.

## See Also

### Related Documentation

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

### Respond to Spring-loading Events

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