Fixes the center of the view at the specified coordinates in its parent’s coordinate space.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Swift
UI
Fixes the center of the view at the specified coordinates in its parent’s coordinate space.
SDKs
Framework
func position(CGPoint) -> View
Fixes the center of the view at the specified point in its parent’s coordinate space.
func offset(CGSize) -> View
Offsets the view by the horizontal and vertical distances in the given size.
func offset(x: CGFloat, y: CGFloat) -> View
Offsets the view by the specified horizontal and vertical distances.
func edges Ignoring Safe Area(Edge .Set) -> View
Extends the view out of the safe area on the specified edges.
func coordinate Space<T>(name: T) -> View
Assigns a name to this view’s coordinate space to which descendants of this view can refer.