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

# automaticallyAdjustsScrollViewInsets

A Boolean value that indicates whether the view controller should automatically adjust its scroll view insets.

```
var automaticallyAdjustsScrollViewInsets: Bool { get set }
```

## Discussion

The default value of this property is <doc://com.apple.documentation/documentation/Swift/true>, which lets container view controllers know that they should adjust the scroll view insets of this view controller’s view to account for screen areas consumed by a status bar, search bar, navigation bar, toolbar, or tab bar. Set this property to <doc://com.apple.documentation/documentation/Swift/false> if your view controller implementation manages its own scroll view inset adjustments.

---

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)