<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISpringLoadedInteraction/init(activationHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISpringLoadedInteraction(im)initWithActivationHandler:"
  },
  "title" : "init(activationHandler:)"
}
-->

# init(activationHandler:)

Initializes a new spring-loaded interaction with a specified activation handler block, employing the default behavior and visual effect.

```
convenience init(activationHandler handler: @escaping (UISpringLoadedInteraction, any UISpringLoadedInteractionContext) -> Void)
```

## Parameters

`handler`

The handler that is invoked when the spring-loaded interaction is activated.

## Return Value

A spring-loaded interaction that has a specific activation handler block and a default behavior and visual effect.

---

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)