child view
Last updated
Was this helpful?
Last updated
Was this helpful?
โฉ โฉ โฉ child view
child view (ๅญ่ฆๅ)
่ขซ ๆๅ
ๅซ็ view๏ผไพๅฆ๏ผ ContainerView {
childView
}
ใ
่ขซ ไฟฎ้ฃพ็ view๏ผไพๅฆ๏ผchildView
.modifier()
ไธญ็ childView
ใ
่ๅ ถๆๅซ็ๆๆๅญ่ฆๅ (descendants) ๅฝขๆ ใ
ๅจ ็็ๆณ๏ผๅคงๆฌ่่ฃก้ข็ views ๅฐฑๆฏ child viewsใ
ๅจๆ ็ๆ ๆณไธ๏ผ่ฆๅ้ไพ็๏ผๅ้ข็ๆฏ child view๏ผๅพ้ข็ๆฏ parent viewใ
ๅฆๆ็ตๅ่ตทไพ็๏ผ
้ๆ็ view hierarchy ๅฐฑๆ่ฎๆ๏ผ
โฉ โฉ
When SwiftUI renders a , it recursively evaluates each child view: The parent view proposes a size to the child views it contains, and the child views respond with a computed size.