🔸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.
Last updated
Was this helpful?