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

# prefersEdgeAttachedInCompactHeight

A Boolean value that determines whether the sheet attaches to the bottom edge of the screen in a compact-height size class.

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

## Discussion

The default value is <doc://com.apple.documentation/documentation/Swift/false>, which means the sheet defaults to a full screen appearance at compact height. Set this value to <doc://com.apple.documentation/documentation/Swift/true> to use an alternate appearance in a compact-height size class, causing the sheet to only attach to the screen on its bottom edge.

---

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)