---
title: frameRotation
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/framerotation
---

# frameRotation

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

## Declaration

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

## Discussion

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 property to true when you want the view to be redisplayed. Changing the frame rotation value results in the posting of an frameDidChangeNotification to the default notification center if the view is configured to do so.

## See Also

### Related Documentation

- [boundsRotation](appkit/nsview/boundsrotation.md)

### Modifying the Frame Rectangle

- [frame](appkit/nsview/frame.md)
- [setFrameOrigin(_:)](appkit/nsview/setframeorigin(_:).md)
- [setFrameSize(_:)](appkit/nsview/setframesize(_:).md)
- [frameDidChangeNotification](appkit/nsview/framedidchangenotification.md)
- [postsFrameChangedNotifications](appkit/nsview/postsframechangednotifications.md)
