Contents

UIWindowScene.ActivationInteraction

An interaction that facilitates activating a window scene when a user pinches out on the interaction’s view.

Declaration

@MainActor class ActivationInteraction

Overview

Create a UIWindowScene.ActivationInteraction object when you want to facilitate requesting scene activation when the user pinches open on a view. You initialize the interaction with a closure that the system executes when the user triggers the interaction. The closure should return a UIWindowScene.ActivationConfiguration object. You also provide an error-handler closure that the system executes if the scene activation request fails.

To request scene activation from an interaction with a UICollectionView cell, use the collectionView(_:sceneActivationConfigurationForItemAt:point:) method.

Topics

Creating an activation interaction

Initializers

See Also

Supporting types