From the course: Introducing App Development for iOS 14

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Modifying SwiftUI objects

Modifying SwiftUI objects

From the course: Introducing App Development for iOS 14

Start my 1-month free trial

Modifying SwiftUI objects

- [Instructor] So, if you look at our text fields on the screen right here, each one of them is exactly the same size and same font, and same font weight. Well, we can modify those by modifying the SwiftUI attributes. So let's go start with Tip Calculator. I'm going to create a couple new lines and right below the text line, I'm going to type a dot and then I'm going to type font. But you'll also notice, that we have all of these different options that are appearing before I type anything else. So if I want to type bold text I can simply highlight bold then press return, and then you'll notice that Tip Calculator turns bold. It may be difficult on my screen to see unless I zoom in a little bit. So let's zoom back out and we're going to adjust the font. So I'll type dot font, and then inside of there, we can have dot title. That's the default font, I'll just press return on my keyboard. And that looks pretty good as…

Contents