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