Class

UIPreviewTarget

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

Declaration

class UIPreviewTarget : NSObject

Overview

Create a UIPreviewTarget object when animating views to or from a separate container view. For example, use this method to animate views to or from a different part of your app's interface.

Topics

Creating a Preview Target Object

init(container: UIView, center: CGPoint, transform: CGAffineTransform)

Creates a preview target object using the specified container view and configuration details.

init(container: UIView, center: CGPoint)

Creates a preview target object using the specified container view and center point.

Getting the Target Attributes

var container: UIView

The container for the view being animated.

var center: CGPoint

The point in the containing view at which to place the center of the view being animated.

var transform: CGAffineTransform

An affine transform to apply to the view being animated.

Relationships

Inherits From

See Also

Contextual Menus

class UIContextMenuInteraction

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

protocol UIContextMenuInteractionDelegate

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

class UITargetedPreview

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

class UIPreviewParameters

Additional parameters to use when animating a preview interface.