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

# shouldAllow(_:with:)

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

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

<doc://com.apple.documentation/documentation/Swift/true> if the spring-loaded interaction should begin or continue; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

---

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)