ykyouhei / KYDrawerController

Side Drawer Navigation Controller similar to Android
MIT License
621 stars 158 forks source link

Cannot invoke initializer with no arguments #119

Open bangiqi opened 6 years ago

bangiqi commented 6 years ago

Cannot invoke initializer for type KYDrawerController with no arguments. How can i solve this error?

anuranBarman commented 6 years ago

You can initialize it like this

let drawerController = KYDrawerController(drawerDirection: KYDrawerController.DrawerDirection.left, drawerWidth: 200)