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

# transform

Specifies the transform applied to the view, relative to the center of its bounds.

## Declaration

```swift
var transform: CGAffineTransform { get set }
```

## Discussion

Discussion Use this property to scale or rotate the view’s frame rectangle within its superview’s coordinate system. (To change the position of the view, modify the center property instead.) The default value of this property is CGAffineTransformIdentity. Transformations occur relative to the view’s anchor point. By default, the anchor point is equal to the center point of the frame rectangle. To change the anchor point, modify the anchorPoint property of the view’s underlying CALayer object. Changes to this property can be animated. In iOS 8.0 and later, the transform property does not affect Auto Layout. Auto layout calculates a view’s alignment rectangle based on its untransformed frame. warning: When the value of this property is anything other than the identity transform, the value in the frame property is undefined and should be ignored.

## See Also

### Configuring the bounds and frame rectangles

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