Now that the screen is done, it's time to connect it up and you should know what to do at this point.
So if we hit this little icon at the top, right.
And then on one side, we select the view controller, but we haven't actually created the View controller
yet.
That brings up a good point.
That's what happens when you do these things freestyle.
So we're going to click add new file.
Going to go, of course, with a swift file.
And we are going to call this the off view controller.
OK, and now we're actually let me just turn this sidebar off, we actually have to set this view controller
as the off view controller.
So in the top right, we're going to select it from the left here.
Just press enter sometimes because sometimes it doesn't actually take now hit this icon in the top.
Right.
And we are going to look at our own view controller.
Over here, so we're going to create the class of all of you controller.
Which will need, of course, the import of a UI kit, otherwise you'll view controller won't actually
appear here.
So there it is.
We now have our class.
OK, so if we come back to this little left side here, we should now be able to click at Holding Control
and drop it into our class so we can insert an outlet, which is email address input.
And we can do the same with password.
Oops, I pressed function there.
Not quite what I was planning to do.
And what's this going to be, password input
and then we need an action for the login button.
So we don't want an outlet for that one, we want an action, but by.
Logging tapped.
Maybe we want to pass over the button itself just to make sure that we have access to that button so
we can do something with the button as in disable it, because we don't want the user to press it twice,
because if they do that, they will try and register twice.
And, of course, you'll get an error.
Registered, tapped, set, that is button as well.
And then finally forgot password control, click and drag.
Forgot, tapped.
Now, you might be wondering why I don't actually use the word button in these, I think sometimes it's
not actually necessary to do that.
I know I've said to do it.
And as a beginner, perhaps you should.
But as you get more advanced, you you start to realize that by just having the verb tapped, you understand
that it's a button or it's a a way of entering user input as in a tap.
So you don't have to have the word button.
And if your sender is of type button, then you know that it's a button.
So these are little shortcuts that you can take as you become more advanced as a developer so that you
don't have to type anywhere near as much stuff.
OK, so that's all the outlets set up.
That's the view.
Control is set up.
Let's move on.