If your content view controller depends on the top layout guide being adjusted — e.g. if the content does not have a tracking scroll view and therefore relies on the top layout guide to perform layout calculations — then you should consider setting topLayoutGuideViewController to the content view controller.
Setting this property does two things:
topLayoutGuide property to take the flexible header into account (most useful pre-iOS 11).additionalSafeAreaInsets property to take the flexible header into account.Note: topLayoutGuideAdjustmentEnabled is automatically enabled if this property is set.
flexibleHeaderViewController.topLayoutGuideViewController = contentViewController
flexibleHeaderViewController.topLayoutGuideViewController = contentViewController;