---
title: "shouldAllow(_:with:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uispringloadedinteractionbehavior/shouldallow(_:with:)"
---

# shouldAllow(_:with:)

Returns a Boolean value that determines whether spring-loaded interaction should begin or should continue for the specified context.

## Declaration

```swift
func shouldAllow(_ interaction: UISpringLoadedInteraction, with context: any UISpringLoadedInteractionContext) -> Bool
```

## Parameters

- `interaction`: The spring-loaded interaction requesting the information.
- `context`: An object that provides information about the current drag operation.

## Return Value

Return Value true if the spring-loaded interaction should begin or continue; otherwise, false.
