title: Replace-root-view-controller custom segue with animation?
body: <p>I've got a custom <code>UIStoryboardSegue</code> subclass which just replaces the root view controller with the destination VC.  Works exactly as I want it to... however, I'd like to be able to add a transition animation, and I can't find any good examples of how to do that in the context of replacing the root VC.</p>
  
  <p>The -perform selector of my class is this:</p>
  
  <pre><code>-(void)perform {
      UIViewController *source = (UIViewController *)self.sourceViewController;
      source.view.window.rootViewController = self.destinationViewController;
  }
  </code></pre>
  
  <p>...How do I add a nice animated transition?</p>