frame

Positions this view within an invisible frame.

View ModifieriOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+

Overloads

3 ways to call compose().frame(). Each is one SwiftUI overload, picked by the arguments you pass.

Please pass one or more parameters.

React
compose().frame()
Swift
nonisolated func frame() -> some View

Discussion

See also

More in Layout.