Contents

viewController(for:)

Specifies which view controller should display the large content viewer.

Declaration

optional func viewController(for interaction: UILargeContentViewerInteraction) -> UIViewController

Parameters

  • interaction:

    The large content viewer that the system is displaying.

Return Value

A view controller that the system uses to present the large content viewer in.

Discussion

By default, UIKit uses a view controller that contains the view you added the interaction to. If this default choice doesn’t work for your app, implement this method to specify a different view controller.

See Also

Customizing large content viewer interactions