preferredContentSize
The hosting controller tracks its content’s ideal size in its preferred content size.
Declaration
static let preferredContentSize: UIHostingControllerSizingOptionsDiscussion
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.