Question: I have discover that the pushFrontViewController function in SWReveal.

I have added the UIViewController in the storyboard's Contact.![enter image description here](https://i.stack.imgur.com/U6B5R.png)
And I am trying covert to swift, but it do not work.
Here is the code:

```
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
     //CODE TO BE RUN ON CELL TOUCH
        var newFrontController: UIViewController
        let selectedItemMenu = arrayOfSlider[indexPath.row]

        var revealController  = SWRevealViewController()
        var contact_nav = ContactViewController()
        newFrontController = UINavigationController(rootViewController:contact_nav) 
        revealController.pushFrontViewController(newFrontController , animated:true)
}

```

Is there anything that I am wrong?

Answer: 
SWRevealViewControllor is not that much hard. you should follow [this example](http://www.appcoda.com/sidebar-menu-swift/). I think its a perfect example you can try. It may help you !
After having a depth research, I just need some simple code to solve this case which is at the below:

```
            self.revealViewController().revealToggleAnimated(true)
            let vc = storyboard!.instantiateViewControllerWithIdentifier(viewControllerStoryBoardID[indexPath.row]) as! UIViewController
            self.revealViewController().setFrontViewController(vc, animated: true)

```