title: SWRevealViewController from the right side on swift
body: <p>I am using SWRevealViewController library to make a slide out menu in swift, but I am struggling to put this menu in the right side. I have seen on the library description this comment </p>
  
  <pre><code>// Optional right view controller, can be nil if not used
  @property (nonatomic) UIViewController *rightViewController;
  </code></pre>
  
  <p>but I am not familiar with objective C and I am not being able to do this on swift. This is a part of my code for the default(left) menu:</p>
  
  <pre><code>class ViewController: UIViewController, AVAudioPlayerDelegate {
  
  @IBOutlet weak var playlistOutlet: UIBarButtonItem!
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      playlistOutlet.target = self.revealViewController()
      playlistOutlet.action = Selector("revealToggle:")
  
      self.view.addGestureRecognizer(self.revealViewController().panGestureRecognizer())
  
  }
  }
  </code></pre>
  
  <p>And revealViewController is called from the SWRevealViewController library  </p>