Contents

init(activationHandler:)

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

Declaration

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.

See Also

Initializing a spring-loaded interaction