ykyouhei/KYDrawerController
View on GitHubOn first display, drawer controller animates vertically
Open
#61 opened on Aug 10, 2016
bughelp wanted
Repository metrics
- Stars
- (619 stars)
- PR merge metrics
- (PR metrics pending)
Description
On first run of
drawerController.setDrawerState(KYDrawerController.DrawerState.Opened, animated: true)
to open the drawer, the drawer view controller has a slight vertical animation. Presumably, this is from a CGRectZero frame or something similar. Calls to drawerController.drawerViewController?.loadView() or drawerController.drawerViewController?.view.layoutIfNeeded() before display have no effect.
Current workaround is to open and close the drawer without an animation after application has finished launching.
drawerController.setDrawerState(KYDrawerController.DrawerState.Opened, animated: false)
drawerController.setDrawerState(KYDrawerController.DrawerState.Closed, animated: false)
but creates warnings in the debugger
Unbalanced calls to begin/end appearance transitions for <UIViewController: 0x7ff262ed9870>.
Unbalanced calls to begin/end appearance transitions for <UINavigationController: 0x7ff26305f600>.