Class

UITargetedPreview

An object describing the view to use during preview-related animations.

Declaration

@interface UITargetedPreview : NSObject

Overview

Use a UITargetedPreview to specify the view to use during an animated transition.

Topics

Creating a Targeted Preview Object

- initWithView:parameters:target:

Creates a targeted preview with the specified view, parameters, and target container.

- initWithView:parameters:

Creates a targeted preview for a view in the current window and including the specified parameters.

- initWithView:

Creates a targeted preview for a view in the current window.

Getting the Preview Attributes

view

The view that is the target of the animation.

target

The container for the target view.

size

The size of the view.

parameters

Additional parameters to use when configuring the animations.

Changing the Target's Container

- retargetedPreviewWithTarget:

Returns a targeted preview object with the same view and parameters, but with a different target container.

Relationships

Inherits From

Conforms To

See Also

Contextual Menus

UIContextMenuInteraction

An interaction object that you use to display relevant actions for your content.

UIContextMenuInteractionDelegate

The methods for providing the set of actions to perform on your content, and for customizing the preview of that content.

UIPreviewTarget

An object that specifies the container view to use for animations.

UIPreviewParameters

Additional parameters to use when animating a preview interface.