Contents

preferredContentSize

The hosting controller tracks its content’s ideal size in its preferred content size.

Declaration

static let preferredContentSize: UIHostingControllerSizingOptions

Discussion

Use this option when using a hosting controller with a container view controller that requires up-to-date knowledge of the hosting controller’s ideal size.

See Also

Getting sizing options