๐ธparent view
SwiftUI โฉ view โฉ hierarchy โฉ parent view
parent view (็ถ่ฆๅๆๆฏ่ฆๅ)
ๆฌ่บซๆฏ container view๏ผไพๅฆ๏ผ
ParentView
{ ChildView }
ไธญ็ParentView
ใ่ขซ view modifier ไฟฎ้ฃพ้ๅพ็่ฆๅ๏ผไพๅฆ๏ผ
childView.modifier()
ๅฐฑๆฏchildView
็ parent viewใ
root view ่ๅ ถๆๅซ็ๆๆๅญ่ฆๅ (descendants) ๅฝขๆ view hierarchyใ
่จป๏ผๅจ UIKit
ไธญ้ๅธธ็จฑ็บ superviewใ
ๅจ container view ็็ๆณ๏ผๅคงๆฌ่่ฃก้ข็ views ๅฐฑๆฏ child viewsใ
ๅจๆ view modifiers ็ๆ ๆณไธ๏ผ่ฆๅ้ไพ็๏ผๅ้ข็ๆฏ child view๏ผๅพ้ข็ๆฏ parent viewใ
ๅฆๆ็ตๅ่ตทไพ็๏ผ
้ๆ็ view hierarchy ๅฐฑๆ่ฎๆ๏ผ
Last updated