© Bear Cahill 2021
B. CahillUI Design for iOS App Developmenthttps://doi.org/10.1007/978-1-4842-6449-2_3

3. SwiftUI Building Blocks

Bear Cahill1  
(1)
Denton, TX, USA
 

In this chapter, we’ll look at the variety of building blocks provided by SwiftUI. SwiftUI, like UIKit, provides various elements we can use to build out our UI. We’ve already seen the Text UI element. That’s just the start.

Old Friends and New

If you’ve worked with Xcode development before, you’re probably familiar with many of the standard UI elements. Switch, Segmented Control, Picker View, and others have been good friends for a long time.

Don’t worry – you’ll still be seeing them. However, you’ll create them differently. Of course, yes, it will be in code. But it will also take a more ...

Get UI Design for iOS App Development: Using SwiftUI 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.