ykyouhei/KYDrawerController

Won't work if set "drawerViewControlller" first by Code.

Open

#99 opened on Jul 20, 2017

View on GitHub
 (2 comments) (1 reaction) (0 assignees)Swift (156 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (619 stars)
PR merge metrics
 (PR metrics pending)

Description

I am sure that if set "drawerViewControlller" before "mainViewController", it will not work. Just try in the "Code" Example by simply reordering setting sequence of "drawerViewControlller" and "mainViewController" in AppDelegate.

It confused me a lot and took me a lot time to debug that. I am still not sure whether it's because "addChildController" sequence/order.

I would be grateful if someone can confirm me the real reason.

Contributor guide