1. When you delete the code associated with the button, it might give an error after running because u haven’t removed the action from the button to remove that click on button and then right click and select the action you want to remove

  2. To create a new view controller cmd + shift + L then select view controller

  3. and then click on folder select new then create a cocoa touch class

now to connect the view controller to the class you made using the cocoa touch class

select view controller, then select identity tab from inspection area (left most section). and then select class and set it to what you’ve named your class.

Adding items to view controller

cmd + shift + L to add items to view controller

An item should at least have 4 constraints.

  1. height
  2. width
  3. x coordinate
  4. y coordinate

cmd + drag your mouse to next view controller to add transitions.