<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIModalPresentationStyle/formSheet",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIModalPresentationStyle@UIModalPresentationFormSheet"
  },
  "title" : "UIModalPresentationStyle.formSheet"
}
-->

# UIModalPresentationStyle.formSheet

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

```
case formSheet
```

## 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`](/documentation/UIKit/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`](/documentation/UIKit/UIViewController/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`](/documentation/UIKit/UIModalPresentationStyle/fullScreen).

Where the background content remains visible, the system doesn’t call the presenting view controller’s [`viewWillDisappear(_:)`](/documentation/UIKit/UIViewController/viewWillDisappear(_:)) and [`viewDidDisappear(_:)`](/documentation/UIKit/UIViewController/viewDidDisappear(_:)) methods.

---

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)