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

# shouldAutorotate

A Boolean value that indicates whether the view controller’s contents should autorotate.

```
var shouldAutorotate: Bool { get }
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the content should rotate, otherwise <doc://com.apple.documentation/documentation/Swift/false>. This method returns <doc://com.apple.documentation/documentation/Swift/true> by default.

## Discussion

---

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)