I'm using MMDrawerController
, and I'm trying to change the way the drawer slides out.
In objective C, I would do
[drawerController setDrawerVisualStateBlock:[MMDrawerVisualState slideAndScaleVisualStateBlock]]
to change how the drawer slides out to the Slide and Scale
animation.
In Swift however, I can't seem to be able to do this. This is where I'm at with swift:
drawerController.setDrawerVisualStateBlock { (MMDrawerController!, MMDrawerSide, CGFloat) -> Void in
}
I'm unable to call something like this MMRawerVisualState.slideAndScaleVisualStateBlock()
inside the block. Is this feature not supported with Swift?