I have a UIViewController
laid out in a UIStoryboard
that has the ability to hide its UIStatusBar
. The views in this VC all include a constraint that keeps it's position relative to the topLayoutGuide
.
I'm experiencing an issue where all the subviews jerk up 20 pixels when the status bar is hidden. I've logged the topLayoutGuide value on console, and it looks like it's length changes from 20 to 0 when hidden.
Is there any way to prevent the subviews from jerking 20px when hiding the status bar while keeping this constraint?