Instance Method


Notifies the presentation controller that layout is about to begin on the views of the container view.


func containerViewWillLayoutSubviews()


UIKit calls this method before adjusting the layout of the views in the container view. Use this method and the containerViewDidLayoutSubviews() method to update any custom views managed by your presentation controller.

See Also

Adjusting the Size and Layout of the Presentation

var frameOfPresentedViewInContainerView: CGRect

The frame rectangle to assign to the presented view at the end of the animations.

var overrideTraitCollection: UITraitCollection?

Interface traits for the presented view controller, to use in place of traits from the iOS environment.

func containerViewDidLayoutSubviews()

Called to notify the presentation controller that layout ended on the views of the container view.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software