<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISpringLoadedInteractionContext",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UISpringLoadedInteractionContext"
  },
  "title" : "UISpringLoadedInteractionContext"
}
-->

# UISpringLoadedInteractionContext

The interface an object implements to provide information about a spring-loaded interaction.

```
@MainActor protocol UISpringLoadedInteractionContext : NSObjectProtocol
```

## Topics

### Managing state

[`var state: UISpringLoadedInteractionEffectState`](/documentation/UIKit/UISpringLoadedInteractionContext/state)

The current view style for the spring-loaded interaction.

[`var targetItem: Any?`](/documentation/UIKit/UISpringLoadedInteractionContext/targetItem)

The specific subview, or associated model object, of the target view to use for the spring-loaded interaction.

[`var targetView: UIView?`](/documentation/UIKit/UISpringLoadedInteractionContext/targetView)

The view to which the current spring-loaded interaction view style is applied.

[`enum UISpringLoadedInteractionEffectState`](/documentation/UIKit/UISpringLoadedInteractionEffectState)

The spring-loaded interaction states that determine the style of the interaction view.

### Getting the drag activity’s location

[`func location(in: UIView?) -> CGPoint`](/documentation/UIKit/UISpringLoadedInteractionContext/location(in:))

Returns the location of the drag activity within the specified view.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)