The center point of the view's frame rectangle.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
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.