Lnpopupcontroller: Popup drag animation causes controller to get stuck under status bar

Created on 22 Nov 2019  路  6Comments  路  Source: LeoNatan/LNPopupController

Popup is presented on a TabBarController which is parent of several child navigation controllers. The popup's content view controller is a regular UIViewController.

The UIViewController has prefersStatusBarHidden set to YES. Drag style is set to default (iOS 10.0+)

When clicking the arrow or popup bar to hide and show the VC, the status bar animation _works_ as expected:

expected

When slowly dragging the VC downwards, the status bar does _not_ update and gets stuck on top of the tab bar contents:

unexpected

Have tried messing around with setNeedsStatusBarAppearanceUpdate() but no luck. Setting prefersStatusBarHidden to NO eliminates this problem.

Simulated on iPhone 8 with iOS 12.4+. Works as expected on iPhone X and above. Using latest LNPopupController framework.

bug

All 6 comments

Thanks
Will look into it when I have time.

Is it reproducible in the example project?

Thanks for the fast response @LeoNatan

Is it reproducible in the example project?

Yes - have set prefersStatusBarHidden to YES in the example project, and you can see the same behaviour occurs:

On click:

expected_example

The "Gallery" button re-appears in the _correct_ place.

On drag:

unexpected_example

The "Gallery" button is further up than it should be.

Thanks for checking. I will take a look.

Will look into this tomorrow.

Fixed in master, will release a new version soon.

Was this page helpful?
0 / 5 - 0 ratings