From the course: Complete Guide to SwiftUI

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Text modifiers

Text modifiers

- [Instructor] While I've used it, we haven't done much with styling the text. There are many modifiers we can use to highlight in size text. You can change the font of your text, either as dynamic type or as a static font. Now, swift UI prefers dynamic type and makes it very easy for you to use, for example, in the menu item view that we have up now, I could change the pizza name font. So I'm going to go over here where it says margarita press return and you just type in font parentheses. And if you hit the period here to look at what you got, you got a whole bunch of fonts ready to go. Large title, title, call out, captions, footnotes, headlines, more titles, and a bunch of custom and system ones that you have available to you. I'm going to just use title here, and I can pop this up, and now it just pops up to a much larger size for title. Now I'm going to play with the description a little bit and in order to do that we're going to need a little bit of a website. So I'm going to go…

Contents