---
title: center
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiview/center
---

# center

The center point of the view’s frame rectangle.

## Declaration

```swift
var center: CGPoint { get set }
```

## Discussion

Discussion The center point is specified in points in the coordinate system of its superview. Setting this property updates the origin of the rectangle in the frame property appropriately. Use this property, instead of the frame property, when you want to change the position of a view. The center point is always valid, even when scaling or rotation factors are applied to the view’s transform.   Changes to this property can be animated.

## See Also

### Configuring the bounds and frame rectangles

- [frame](uikit/uiview/frame.md)
- [bounds](uikit/uiview/bounds.md)
- [transform](uikit/uiview/transform.md)
- [transform3D](uikit/uiview/transform3d.md)
- [anchorPoint](uikit/uiview/anchorpoint.md)
