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
From the course: Complete Guide to SwiftUI
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
-
-
-
-
-
(Locked)
Presenting views2m 19s
-
(Locked)
Space modifiers2m 54s
-
(Locked)
Shape modifiers3m 54s
-
(Locked)
Text modifiers8m
-
(Locked)
Color modifiers6m 4s
-
(Locked)
Basic backgrounds8m 29s
-
(Locked)
Materials and shadows7m 17s
-
Scale modifiers4m 42s
-
(Locked)
Size modifiers5m 25s
-
(Locked)
Clean up joined views6m 9s
-
(Locked)
Challenge: Clean up OrderView1m 28s
-
(Locked)
Solution: Clean up OrderView8m 36s
-
(Locked)
-
-
-
-
-
-
-
-
-
-
-
-
-