---
title: prefersEdgeAttachedInCompactHeight
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisheetpresentationcontroller/prefersedgeattachedincompactheight
---

# prefersEdgeAttachedInCompactHeight

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

## Declaration

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

## Discussion

Discussion The default value is false, which means the sheet defaults to a full screen appearance at compact height. Set this value to 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.

## See Also

### Managing the appearance

- [prefersGrabberVisible](uikit/uisheetpresentationcontroller/prefersgrabbervisible.md)
- [prefersPageSizing](uikit/uisheetpresentationcontroller/preferspagesizing.md)
- [widthFollowsPreferredContentSizeWhenEdgeAttached](uikit/uisheetpresentationcontroller/widthfollowspreferredcontentsizewhenedgeattached.md)
- [preferredCornerRadius](uikit/uisheetpresentationcontroller/preferredcornerradius-3mb5.md)
