So I come back again in this lesson we're going to talk about your view transitions and they're actually
quite helpful to get a really quick animations for a variety of different objects so that the school
had to school.
And I'm going to make a new op called view transition's
and here I'm going to go ahead and get myself a pardon.
That's going to.
How do you make that transition.
It essentially is going to instigate that transition for me.
So I'm going to say this is called Make transition and maybe it has a different Mike on the car.
And I also have a label.
I could do it with you I view was when I want to do it with label because I want to show you something
particular about it.
So maybe these these or five of these two five or six right in the center.
It has a background color which is like that and a much larger text in the middle saying hi.
Now go ahead into my assistant dishtowels window and in here I'm going I say this is read the label
and this is function for animate action and that's all we have to do in our interface.
So let's go ahead and add the transition.
It's actually going to be very simple yet I'm going to get myself a little bit more space and I'm going
to say you have you know a transition and I want to use transition vet.
And let me stack them properly so I can explain what each of them means.
So that transition has a view.
Which one do you want to essentially cause transition.
I'm going to see that's going to be self read label in this case.
Does a duration which is obviously the easiest one.
Let's say two seconds.
It has animations some going to say if you animation options and maybe you want to get something called
flip from right.
I have an experience I can what it is even though it's quite explanatory then it has the animations
to closure what you want to see happening in the animations closure completion closure which in this
case I don't want to use but if you wanted you could simply add different stuff to it.
The animations I want to see are these I want the red label to have a different background color wise
color to become Daut dark gray.
And I wonder at Lavan dot text to say hi or yes.
So these are the animations that they want to see.
Voile if we do the transition.
So let's go ahead and run this on.
I forgot the self as all these.
So self self and that's about that.
So let's run the animation.
Now here if I press them make a transition essentially it goes and does a flip from right in two seconds
that changes the content of the red label.
Let's make this a little bit faster and change not from Flip to right to another thing paired up with
a kind of animation option for transitions.
So here it does that of course if I keep redoing it it will keep doing the animation part but the contents
are not changing simply because it is showing I was in a dark gray background.
So that's it making a very simple transition using the UI view that transition causing a certain set
of animations and a group of completion of stuff if you need that that are let's keep it up to here
and we'll move on to our next lesson.