Contents

Anchor.Source

A type-erased geometry value that produces an anchored value of a given type.

Declaration

@frozen struct Source

Overview

SwiftUI passes anchored geometry values around the view tree via preference keys. It then converts them back into the local coordinate space using a GeometryProxy value.

Topics

Getting point anchor sources

Getting rectangle anchor sources

Getting top anchor sources

Getting middle anchor sources

Getting bottom anchor sources

Creating an anchor source

Type Properties

Type Methods