viewController(for:)
Specifies which view controller should display the large content viewer.
Declaration
optional func viewController(for interaction: UILargeContentViewerInteraction) -> UIViewControllerParameters
- 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.