Instance Property

previewActionItems

The quick actions displayed when a user swipes upward on a 3D Touch preview.

Declaration

@property(nonatomic, readonly) NSArray<id<UIPreviewActionItem>> *previewActionItems;

Return Value

An array of preview (peek) quick actions.

Discussion

This property is for use with a preview (peek) view controller which you present in your implementation of the previewingContext:viewControllerForLocation: delegate method..

Implement this method to provide quick actions for such a preview. When the user swipes upward on the preview, the system presents these quick action items in a sheet below the preview.

The default implementation of this method returns an empty array.

For guidance on appropriate items to include as preview quick actions, read the material on 3D Touch in the iOS Technologies chapter of iOS Human Interface Guidelines.

For more information on preview quick actions, see UIPreviewActionItem and UIPreviewAction.

See Also

Properties

automaticallyAdjustsScrollViewInsets

A Boolean value that indicates whether the view controller should automatically adjust its scroll view insets.

Deprecated
bottomLayoutGuide

Indicates the lowest vertical extent for your onscreen content, for use with Auto Layout constraints.

Deprecated
canDisplayBannerAds

A boolean value that indicates whether the view controller is configured to display banner ads.

Deprecated
contentSizeForViewInPopover

The size of the view controller'€™s view while displayed in a popover.

Deprecated
interfaceOrientation

Convenience property that provides the current orientation of the interface, meaningful only if the view controller is taking up the full screen.

Deprecated
interstitialPresentationPolicy

Determines whether interstitials should be presented at all and whether the framework or app should manage the presentation.

Deprecated
displayingBannerAd

A boolean value that indicates whether the view controller is displaying a banner ad.

Deprecated
modalInPopover

A Boolean value indicating whether the view controller should be presented modally by a popover.

Deprecated
presentingFullScreenAd

A boolean value that indicates whether the view controller is displaying a full-screen ad.

Deprecated
modalViewController

The controller for the active presented view'€”that is, the view that is temporarily displayed on top of the view managed by the receiver.

Deprecated
originalContentView

The originally configured content view of the view controller before banner ads were enabled.

Deprecated
searchDisplayController

The search display controller associated with the view controller.

Deprecated
shouldPresentInterstitialAd

Returns whether an interstitial ad should be displayed.

Deprecated
topLayoutGuide

Indicates the highest vertical extent for your onscreen content, for use with Auto Layout constraints.

Deprecated
wantsFullScreenLayout

A Boolean value indicating whether the view should underlap the status bar.

Deprecated