Adding Swipe Navigation

This tutorial is destined to explain you how swipe effect is added in almost all of the ios apps.We can add them through crreating our customized viewcontrollers and then simply merging them all under one umbrella of ViewController.swift file. So, create a new project and going into your main storyboard drag a swipe view from the objects library.

 

81

 

Checkout the necessary attributes for our swipe view to achieve what’s being shown in the video above.

 

82

 

Next, create a connection of your swipe view with viewcontroller. Have a look here:

 

83

 

Great! Now you need to create separate viewcontrollers for every view. Goto file->newfile and do the following:

 

84

 

85

 

Repeat creating these  files until  you have 4 new view controllers. Goto everyone and change their background colors accordingly. Now the total files you will have are:

 

86

 

 

ViewController.swift

 

 

AppDelegate.swift

 

ViewController1.swift

ViewController2.swift

 

ViewController3.swift

 

Downlaod: SwipeNavigation

Shares

Leave a Reply

Your email address will not be published. Required fields are marked *