Called to notify the view controller that the layout margins of its root view changed.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
- tvOS 11.0+
Framework
- UIKit
Declaration
func viewLayoutMarginsDidChange()
Discussion
Use this method to update the position of content based on the new margin values.