Skip to main content

Working with containers

About 1 minSwiftSwiftUIArticle(s)bloghackingwithswift.comcrashcourseswiftswiftuixcodeappstore

Working with containers 관련

SwiftUI by Example

Back to Home

Working with containers | SwiftUI by Example

Working with containers

Updated for Xcode 15

SwiftUI is designed to be composed right out of the box, which means you can place one view inside another as much as you need.

This is particularly useful when working with the major container views we are used to, such as navigation controllers and tab bar controllers. We can place any views we want right into another container view, and SwiftUI will adapt its layout automatically.

In this regard, SwiftUI's own containers – NavigationStack, TabView, Group, and more – are no different from containers we make with our own view composition.

Similar solutions…
Working with forms | SwiftUI by Example

Working with forms
Working with state | SwiftUI by Example

Working with state
Working with presentations | SwiftUI by Example

Working with presentations
Working with lists | SwiftUI by Example

Working with lists
SwiftUI tips and tricks | SwiftUI by Example

SwiftUI tips and tricks

이찬희 (MarkiiimarK)
Never Stop Learning.