Everybody what's going on this is Kayla with slopes dot com.
And welcome to Section 5 where you're going to learn how to use observables and subjects in real life
in a real application.
And I'm going to show you the app we're going to build.
It's pretty simple.
But remember Eric Swift is sort of a new way of thinking about programming and SWIP So the app is simple
and it's a good way to showcase some of the features of our swift and some of the things we can do.
So I'm going to pull it open here and just show you a brief demonstration.
Now in this app what you can do is you can select this text field here and you can type your name.
Now what I've done is I've set up this text field to be an observable and the label has subscribed to
the observable and now watch what happens when I pass in new information watch.
Do you see how it updated there with my name just like that.
So as I am changing the data that's going in the label is reacting to that data.
It's really cool.
Now when I click Submit I have set up this label there's a hidden label down here.
I have set that up to observe what is in this text field and when I press submit I trigger that watch
what happens.
Boom it adds it in.
It clears my text field and clears my label back to the default message.
Now I could do another one Samantha and I could push submit and it adds it down there.
OK.
So you might be thinking wow this isn't that really that's not that impressive of an app and you're
right it's not an amazing app that you would put on the App Store and reach the top of the App Store
charts.
But it does demonstrate some very important core arcs swift principles.
So we're going to build this app so that you could pass in a name you can create observables of UI elements
in X code.
You can subscribe to then using other UI elements or alternatively you could use subjects like a published
subject behavior subject or other types of observables.
And we could also trigger actions using our swift.
It's really really cool.
So let's go ahead and let's dive into building the UI of this app in the next video and I'll see it
there.
Let's go ahead and let's head over to the next video where we're going to start creating our XCode project
and installing the Orrick swift and our cocoa cocoa pots.
And we'll explain what that is in the next video.
I'll see you there.