preferredContentSizeDidChange(for:)
Called when there is a change in value of the Preferredcontentsize property of a child view controller or a presented view controller.
Declaration
func preferredContentSizeDidChange(for viewController: NSViewController)Parameters
- viewController:
The view controller whose Preferredcontentsize property value changed.
Discussion
Override this method if you want to adjust layout when a child view controller or presented view controller changes its preferred content size.