shouldAllow(_:with:)
Returns a Boolean value that determines whether spring-loaded interaction should begin or should continue for the specified context.
Declaration
func shouldAllow(_ interaction: UISpringLoadedInteraction, with context: any UISpringLoadedInteractionContext) -> BoolParameters
- interaction:
The spring-loaded interaction requesting the information.
- context:
An object that provides information about the current drag operation.
Return Value
true if the spring-loaded interaction should begin or continue; otherwise, false.