Using generic UIViewControllers is fine

Simplified the code using generic UIViewControllers. There is no need to use your own classes here for MainView and SecondaryViews.

I also changed the duration so it uses the same you set on transitionDuration.

BTW, Thanks for this example, it really helped me :)