🔸container view
SwiftUI ⟩ view ⟩ hierarchy ⟩ container
container view (容器視圖)
包含其他子視圖 (child views) 的視圖 (view),例如:
- VStack,- HStack,- ZStack
- List,- ScrollView,- Form
- Navigation views are container views. 
- Use a WindowGroup as a container for a view hierarchy that your app presents. 
- container view 一定是 parent view,但 parent view 不一定是 container view 
- A view determines its size based on the space offered by its container view. 
- SwiftUI ⟩ Layout fundamentals ⟩ Picking container views for your content ⟩ - List - presents rows of data arranged in a single column, optionally providing the ability to select one or more members. 
 
Last updated
Was this helpful?