---
title: UIModalPresentationStyle.formSheet
framework: uikit
role: symbol
role_heading: Case
path: uikit/uimodalpresentationstyle/formsheet
---

# UIModalPresentationStyle.formSheet

A presentation style that displays the content centered in the screen.

## Declaration

```swift
case formSheet
```

## Discussion

Discussion In a regular-width, regular-height size class, the system adds a layer with a Liquid Glass effect over the background content and centers the view controller’s content on top of this layer. The default content size is smaller than that of the UIModalPresentationStyle.pageSheet style. A part of the background content always remains visible. To provide a custom content size, use the modal view controller’s preferredContentSize property. In a compact-width, regular-height size class, the system displays the view controller as a sheet with part of the background content visible near the top of the screen. In a compact-height size class, the behavior is the same as UIModalPresentationStyle.fullScreen. Where the background content remains visible, the system doesn’t call the presenting view controller’s viewWillDisappear(_:) and viewDidDisappear(_:) methods.

## See Also

### Presentations

- [UIModalPresentationStyle.automatic](uikit/uimodalpresentationstyle/automatic.md)
- [UIModalPresentationStyle.none](uikit/uimodalpresentationstyle/none.md)
- [UIModalPresentationStyle.fullScreen](uikit/uimodalpresentationstyle/fullscreen.md)
- [UIModalPresentationStyle.pageSheet](uikit/uimodalpresentationstyle/pagesheet.md)
- [UIModalPresentationStyle.currentContext](uikit/uimodalpresentationstyle/currentcontext.md)
- [UIModalPresentationStyle.custom](uikit/uimodalpresentationstyle/custom.md)
- [UIModalPresentationStyle.overFullScreen](uikit/uimodalpresentationstyle/overfullscreen.md)
- [UIModalPresentationStyle.overCurrentContext](uikit/uimodalpresentationstyle/overcurrentcontext.md)
- [UIModalPresentationStyle.popover](uikit/uimodalpresentationstyle/popover.md)
- [UIModalPresentationStyle.blurOverFullScreen](uikit/uimodalpresentationstyle/bluroverfullscreen.md)
