---
title: "init(activationHandler:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uispringloadedinteraction/init(activationhandler:)"
---

# init(activationHandler:)

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

## Declaration

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

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

## See Also

### Initializing a spring-loaded interaction

- [init(interactionBehavior:interactionEffect:activationHandler:)](uikit/uispringloadedinteraction/init(interactionbehavior:interactioneffect:activationhandler:).md)
