Let's start the implementation of the app and let's begin with the Register screen.
As usual, we create a new Single View application app, called ASAP, which, for the sake of simplicity, will be a portrait-only app:
Let's create a Register group where we'll add a
RegisterViewController
class and a Storyboard calledRegister.storyboard
.Add a
UIViewController
class to the scene, and define it as theRegisterViewController
class:To keep the instantiation simple, set it as the initial View Controller in the Storyboard:
Moving to the class, we define a
factory
method to instantiateRegisterViewController
:import UIKit class RegisterViewController: UIViewController { static func instantiate() -> RegisterViewController { return UIStoryboard(name: "Register", bundle: nil).instantiateInitialViewController() as! RegisterViewController } }
This is a convenient way to set all the required information in order to create View Controller...