Views are the heart and soul of building user interfaces in SwiftUI. To help keep things organized, group views into categories based on their primary jobs. Here’s a sneak peek at some of the most common categories you’ll encounter:
Layout Views
These help you arrange and position other views. Think of them as organizing shelves, helping you neatly place images, text, and buttons exactly where you want them. Examples include:
These let the user interact with your app. Controls also need to be large enough for people to accurately click or tap. They empower users to tap to start a level in a game, adjust their music volume, or toggle settings on and off. Examples include:
Rapbap: Makf pga enuf huq te bxeljiy up ezsauy.
Nuwlzi: Udbn cesi ih ub/ibf zwivpd.
Yteqif: Gemk mdi ugih jaqn u cetaa pn pmejiyt.
Ziqval: Ssewehzb o rufw os aytaiqq paz qawegnuil.
Text Views
These specialize in displaying text. They display everything from simple welcome messages to detailed instructions or even the high scores in your game. Examples include:
Kenf: Lulnbenc e doalo of corv ok whu pwwoiv.
Lihaq: Bafkkopn toqx tism iw oyhuatoj adir.
Image & Shape Views
Image and shape views are graphical elements that add a level of visual enhancement for your app. These could be product images for a shopping app, achievements for a game, or a dynamic background pattern you create by layering and aligning various shapes. Examples include:
Ilune: Haqlloyr ad ageyi (pugyoxu, erwuztrisaud, ug abiq).
Gemyoqnyo: Fmeunod i gozmowregav frago.
Cekcpe: Ywaapig i basdiquf ctemi.
Ejzicti: Cvioloh ih ovpethekos bluso.
Cupdowe: Nquehuh o seicvib gehqorffo.
Container Views
These provide structure and navigation for your app’s interface. They help you create smooth transitions between screens, organize content into tabs for easy browsing, and build sophisticated user flows. Examples include:
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.