<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISpringLoadedInteractionEffect/interaction(_:didChangeWith:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UISpringLoadedInteractionEffect(im)interaction:didChangeWithContext:"
  },
  "title" : "interaction(_:didChangeWith:)"
}
-->

# interaction(_:didChangeWith:)

Called when the spring-loaded interaction state has changed.

```
func interaction(_ interaction: UISpringLoadedInteraction, didChangeWith context: any UISpringLoadedInteractionContext)
```

## Parameters

`interaction`

The spring-loaded interaction providing the state change information.

`context`

An object that provides information about the current spring-loaded state.

---

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)