
GeometryReader
·
SwiftUI & UIKit/SwiftUI의 모든것
SwiftUI에서 GeometryReader는 뷰의 부모가 제공하는 크기와 위치 정보를 제공하여 자식 뷰를 유동적으로 조정할 수 있도록 도와주는 강력한 도구입니다. GeometryReader란?GeometryReader는 뷰의 레이아웃 정보를 제공하는 컨테이너입니다. 이를 통해 자식 뷰는 부모 뷰의 크기와 위치를 알 수 있으며, 이러한 정보를 기반으로 뷰의 크기와 위치를 동적으로 조정할 수 있습니다. https://developer.apple.com/documentation/SwiftUI/GeometryReader GeometryReader | Apple Developer DocumentationA container view that defines its content as a function o..