Summary
In this chapter, we started by changing the style of our Text View by using pre-defined font styles that are available to us through SwiftUI. Using our fonts in this way allows us to easily keep a consistent look throughout the app, with very little effort. Next, we looked at how to add color and how to amend the weight of our Text with the use of modifiers. From this, we added another Text View and saw that by using a VStack, we could obtain our desired look.
In order to preview our data without the need to launch the app in the simulator, we updated PreviewProvider with mock data, thus allowing us to easily identify how our View would look and feel.
After we added text to each row in our List View, we extracted this in order to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access