April 2020
Beginner
316 pages
8h 20m
English
Grouping is a way of visually managing views within your code base. This can be performed very easily in SwiftUI by simply wrapping Group {} around your content within a List view, for example.
Try by adding the following to the code in the previous section and view the results in the Automatic preview window:
struct ContentView: View { var body: some View { NavigationView { List { Group{ Text("Hello World") } } } }}
Let your Automatic preview windows update and take a look. What can you see? That's right – not much. Groups won't actually affect the way your UI is displayed as these containers are just a way for you (the developer) to order ...
Read now
Unlock full access