Hello, in this video we are going to take a look at the Cupertino segmented control. Basically a little system that is split up into many buttons, you click it, you can do something. And what is commonplace on iOS devices and other devices? Well, it seems like a tab system. When you click it, it shows you some content, some buttons and text, etc. You click one of the other ones, it basically hides the stuff out, you know cornichons then he shows the other stuff, but the functionality is totally up to you.
I'm just gonna show you how to implement the segmented control as an extra task or when you to go step further, and maybe increments or like a page system that I just mentioned, though, to add this, it couldn't be simpler. I've got it in a you know in a safe area contain a column but a child you can add the Cupertino, Cupertino segmented control and who then we have to To that we need to put in an extra test only to experiment with the border color press collect electrical lab and on selected for lab or on him dealing with these. For now. We are going to have the children or the segmented control. So for this cuz it's a mapping of prot digit in here you've put put your widgets and Sorry, I'm for the zero colon. That's basically the index.
And again, this could be a lot more complex but for this Pied Piper one text and one, two Option two. Let's save this and see what we get. Again error. And that's because I forgot to commend the unboxings because this is also in the required T for template and I've done printer printer too. Now, in the arrow, there we go. If I click one of them is zero, there's the next one, you get one or click the last one and if I click it multiple times, it'll print here multiple times Okay, my thinking you know, what color was with the you know, the underlined or like the text decoration, what is with the size, obviously, depending on the rest of the application may or may not look like this.
I created a textile previous to this video, and it just basically makes the technical black, remove the decoration and just load the font size. So I'm going to add this to the text style He was t style. And that decided to add that to all of them. And there we go. As you see, it looks a lot better. Now, that's really all there is to it.
So as an extra test, the fifth thing that we need to do is essentially created so you can actually have it and have like maybe, you know, different buttons here to hide and show them. The other thing I'm going to do is modify the colors inside the text file and also add a bit of padding because you know, I double spacing on the edges. It doesn't look very good. No problem. That's really all there is to it. If you have any questions, feel free to pop me a message.
And as usual, I look forward to see you in the next video.