<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/isRotatedOrScaledFromBase",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSView(py)rotatedOrScaledFromBase"
  },
  "title" : "isRotatedOrScaledFromBase"
}
-->

# isRotatedOrScaledFromBase

A Boolean value indicating whether the view or any of its ancestors has ever had a rotation factor applied to its frame or bounds, or has been scaled from the window’s base coordinate system.

```
var isRotatedOrScaledFromBase: Bool { get }
```

## Discussion

The value of this property is <doc://com.apple.documentation/documentation/Swift/true> if the view or any of its ancestors has had its [`frameRotation`](/documentation/AppKit/NSView/frameRotation) or [`boundsRotation`](/documentation/AppKit/NSView/boundsRotation) properties modified at any time. The value is still <doc://com.apple.documentation/documentation/Swift/true> if the rotation factor is changed to a nonzero value and then back to 0.

Use this information to optimize drawing and coordinate calculation. Do not use it to reflect the exact state of the view’s coordinate system.

## See Also

[`setBoundsSize(_:)`](/documentation/AppKit/NSView/setBoundsSize(_:))

Sets the size of the view’s bounds rectangle to specified dimensions, inversely scaling its coordinate system relative to its frame rectangle.

[`scaleUnitSquare(to:)`](/documentation/AppKit/NSView/scaleUnitSquare(to:))

Scales the view’s coordinate system so that the unit square scales to the specified dimensions.

[`bounds`](/documentation/AppKit/NSView/bounds)

The view’s bounds rectangle, which expresses its location and size in its own coordinate system.

[`centerScanRect(_:)`](/documentation/AppKit/NSView/centerScanRect(_:))

Converts the corners of a specified rectangle to lie on the center of device pixels, which is useful in compensating for rendering overscanning when the coordinate system has been scaled.

[`frameRotation`](/documentation/AppKit/NSView/frameRotation)

The angle of rotation, measured in degrees, applied to the view’s frame rectangle relative to its superview’s coordinate system.

[`boundsRotation`](/documentation/AppKit/NSView/boundsRotation)

The angle of rotation, measured in degrees, applied to the view’s bounds rectangle relative to its frame rectangle.



---

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)