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

# frameRotation

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

```
var frameRotation: CGFloat { get set }
```

## Discussion

Positive values indicate counterclockwise rotation. Negative values indicate clockwise rotation. Rotation is performed around the origin of the frame rectangle. Changing the value of this property does not mark the view as needing to be displayed. Set the [`needsDisplay`](/documentation/AppKit/NSView/needsDisplay) property to <doc://com.apple.documentation/documentation/Swift/true> when you want the view to be redisplayed.

Changing the frame rotation value results in the posting of an [`frameDidChangeNotification`](/documentation/AppKit/NSView/frameDidChangeNotification) to the default notification center if the view is configured to do so.

## See Also

[`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)