---
title: "position(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/position(_:)"
---

# position(_:)

Positions the center of this view at the specified point in its parent’s coordinate space.

## Declaration

```swift
nonisolated func position(_ position: CGPoint) -> some View

```

## Parameters

- `position`: The point at which to place the center of this view.

## Return Value

Return Value A view that fixes the center of this view at position.

## Discussion

Discussion Use the position(_:) modifier to place the center of a view at a specific coordinate in the parent view using a CGPoint to specify the x and y offset. Text("Position by passing a CGPoint()")     .position(CGPoint(x: 175, y: 100))     .border(Color.gray)

## See Also

### Adjusting a view’s position

- [Making fine adjustments to a view’s position](swiftui/making-fine-adjustments-to-a-view-s-position.md)
- [position(x:y:)](swiftui/view/position(x:y:).md)
- [offset(_:)](swiftui/view/offset(_:).md)
- [offset(x:y:)](swiftui/view/offset(x:y:).md)
- [offset(z:)](swiftui/view/offset(z:).md)
