Instance Method

previewInteractionDidCancel(_:)

Informs the delegate that the specified preview interaction was canceled.

Required.

Declaration

func previewInteractionDidCancel(_ previewInteraction: UIPreviewInteraction)

Parameters

previewInteraction

The preview interaction associated with the current user input

Discussion

This method is called when the preview interaction is canceled, either programmatically via the cancel() method on UIPreviewInteraction, or by interrupting the preview interaction before the commit phase is complete.

See Also

Preview Interaction Delegate Methods

func previewInteractionShouldBegin(UIPreviewInteraction) -> Bool

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

func previewInteraction(UIPreviewInteraction, didUpdatePreviewTransition: CGFloat, ended: Bool)

Informs the delegate of the progress through the preview phase of the preview interaction.

Required.

func previewInteraction(UIPreviewInteraction, didUpdateCommitTransition: CGFloat, ended: Bool)

Informs the delegate of the preview interaction's progress through the commit phase.