© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
W. WangBeginning iPhone Development with SwiftUIhttps://doi.org/10.1007/978-1-4842-7818-5_3

3. Placing Views on the User Interface

Wally Wang1  
(1)
San Diego, CA, USA
 
When you place a single view on a user interface, SwiftUI centers it in the middle of the screen whether that screen is a small iPhone screen or a much larger iPad screen. As you add more views to your user interface, SwiftUI simply displays those views on top of each other or side by side, depending on whether you arrange them in a vertical or horizontal stack. However, the more views you add to a user interface, the more crowded neighboring views can appear. To solve this problem, SwiftUI offers ...

Get Beginning iPhone Development with SwiftUI: Exploring the iOS SDK 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.