Give your new view controller a name TabBarViewController and make sure it is a subclass of UITabBarViewController.Select iOS->Source->Cocoa Touch Class and click next.Then select File and you will be presented with the following window:.From the top menu section called File select New.To create new view controller follow these steps:
![sliding navigation hamburger iswift library sliding navigation hamburger iswift library](https://freshdesignweb.com/wp-content/uploads/site/Retro-Navigation-Full-CSS.jpg)
You can give this new view controller any name but for now let’s call this new view controller TabBarViewController Do not skip it.įor the purpose of this particular example we will need to create one more view controller which will extend UITabBarViewController. Run your application and see how it works. Once your new application is created you can select Main.storyboard and see that Xcode has created UITabBarController with two views connected to it: FirstViewController.swift and SecondViewController.swift. Give your new application a name and do not forget to select Swift as programming language.From the presented options on the left side select iOS->Application and once iOS Application is selected, select Tabbed Application.The simplest way to create application with UITabBarViewController in Swift is to do following: You can watch this video tutorial( ) I have recorded earlier which demonstrate other ways to create UITabBarController.
#SLIDING NAVIGATION HAMBURGER ISWIFT LIBRARY HOW TO#
There are number of ways how to create UITabBarController and in this tutorial I will use only one of them. However you can easily add more views than that.
![sliding navigation hamburger iswift library sliding navigation hamburger iswift library](https://www.cssscript.com/wp-content/uploads/2017/02/Responsive-Dropdown-Nav-Menu-150x150.jpg)
I will begin by creating UITabBarController with two views. Additionally to sliding with their finger left or right to reveal the side menu user will be able to tap on the top left side or the top right side bar button item to toggle the side menu. And with the help of Navigation Drawer(based on MMDrawerController open source project) we can let user slide the middle view to reveal application Left Side view or Right side view. With the help of UITabBarController we can let user switch between two views: First View & Second View(see the two buttons at the bottom of the view). This is how our application will look when we are done with this tutorial:Īs usual I will record a video tutorial and this time I will also describe the implementation here in this blog post. In this blog post I am going to show you how to create a very useful application template which uses NavigationDrawer(sometimes called as hamburger or side menu) and UITabBarController.