Currently topViewController's view size is adjusted together navigation bar size in case when navigation bar is not translucent - which is reasonable as child view controller views are placed below navigation bar. However, even with opaque navigation bar there is a way to make child view controllers extend beyond the bar - using extendedLayoutIncludesOpaqueBars - it makes the system to treat child view controller's view pretty much in the same way as it would if navigation bar was translucent. The same way a view controller can opt out from being extended even if presented under navigation bar - by modifying edgesForExtendedLayout.
Described setup does not seem to be working well together with AMScrollingNavbar - it does not respect current view controller's preferences which results in visual artefacts.
To Reproduce
This is reproduced by surprising AMScrollingNavbar with a view controller that either extends under opaque navigation bar or doesn't extend under translucent one.
Describe the bug
Currently
topViewController
's view size is adjusted together navigation bar size in case when navigation bar is not translucent - which is reasonable as child view controller views are placed below navigation bar. However, even with opaque navigation bar there is a way to make child view controllers extend beyond the bar - usingextendedLayoutIncludesOpaqueBars
- it makes the system to treat child view controller's view pretty much in the same way as it would if navigation bar was translucent. The same way a view controller can opt out from being extended even if presented under navigation bar - by modifyingedgesForExtendedLayout
.Described setup does not seem to be working well together with AMScrollingNavbar - it does not respect current view controller's preferences which results in visual artefacts.
To Reproduce
This is reproduced by surprising AMScrollingNavbar with a view controller that either extends under opaque navigation bar or doesn't extend under translucent one.
or
Screenshots
Example project Example.zip