Please sign in to comment.
[FlexibleHeader] Fix additionalSafeAreaInsets bug when topLayoutGuide…
…AdjustmentEnabled is enabled. (#4354) Prior to this change: When self.topLayoutGuideAdjustmentEnabled was enabled before a tracking scroll view is set, the top layout guide behavior was adjusting the additionalSafeAreaInsets. If a tracking scroll view was then set, the additionalSafeAreaInsets were never reset, resulting in the additional safe area insets being incorrect on the topLayoutGuideViewController. After this change: If no tracking scroll view is set when self.topLayoutGuideAdjustmentEnabled is enabled, the topLayoutGuideViewController's additionalSafeAreaInsets is reset to 0.
- Loading branch information...
Showing with 45 additions and 9 deletions.