Contents

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

Discussion

Override this method if you want to adjust layout when a child view controller or presented view controller changes its preferred content size.

See Also

Managing Child View Controllers in a Custom Container