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

# springLoadingEntered(_:)

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

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

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

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(_:)`](/documentation/AppKit/NSSpringLoadingDestination/springLoadingUpdated(_:)) to enable spring-loading.

## See Also

[`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)