© Jayant Varma 2019
J. VarmaSwiftUI for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-5516-2_5

5. Layout and Presentation

Jayant Varma1 
(1)
Melbourne, VIC, Australia
 

In the last chapter, we had a look at how Data works in SwiftUI and the principles behind it all. Now that we have a better idea on some of the interesting parts that make SwiftUI work, let’s focus our attention now to the visual, interesting part of SwiftUI that allows us to layout our UI and presentation.

Elements and Modifiers

We had a quick and brief introduction to SwiftUI (in earlier chapters) and saw that SwiftUI is a combination of UI elements and modifiers that manipulate the elements as required. We shall use these modifiers to layout our elements.

SwiftUI does not use ...

Get SwiftUI for Absolute Beginners: Program Controls and Views for iPhone, iPad, and Mac Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.