Contents

systemLayoutFittingSizeDidChange(forChildContentContainer:)

Notifies the container that a child view controller was resized using Auto Layout.

Declaration

func systemLayoutFittingSizeDidChange(forChildContentContainer container: any UIContentContainer)

Parameters

  • container:

    The child view controller that received the resizing message.

Discussion

This method is called when a view controller that doesn’t use Auto Layout has a child view controller that uses Auto Layout and the child view controller is resized. When the child view controller responds to the systemLayoutSizeFitting(_:) method, the systemLayoutFittingSizeDidChange(forChildContentContainer:) method is sent to the parent view controller.

See Also

Responding to changes in child view controllers