Contents

previewInteractionShouldBegin(_:)

Asks the delegate whether a preview interaction is allowed to begin.

Declaration

optional func previewInteractionShouldBegin(_ previewInteraction: UIPreviewInteraction) -> Bool

Parameters

  • previewInteraction:

    The preview interaction that’s responding to user input.

Return Value

true if the preview interaction should continue into the preview and commit phases; otherwise false.

Discussion

If you don’t implement this optional method, the default return value of true is assumed.

When false, no further delegate calls are made for the specified preview interaction until the user restarts the 3D Touch interaction.

See Also

Managing preview interactions