<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIView/transform",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIView(py)transform"
  },
  "title" : "transform"
}
-->

# transform

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

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

## 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`](/documentation/UIKit/UIView/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 <doc://com.apple.documentation/documentation/QuartzCore/CALayer/anchorPoint> property of the view’s underlying <doc://com.apple.documentation/documentation/QuartzCore/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 ``doc://com.apple.uikit/documentation/UIKit/UIView/frame`` property is undefined and should be ignored.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)