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

# UIModalPresentationStyle.currentContext

A presentation style where the content is displayed over another view controller’s content.

```
case currentContext
```

## Discussion

Using this presentation style, the current view controller’s content is displayed over the view controller whose [`definesPresentationContext`](/documentation/UIKit/UIViewController/definesPresentationContext) property is <doc://com.apple.documentation/documentation/Swift/true>. UIKit may walk up the view controller hierarchy to find a view controller that wants to define the presentation context. The views belonging to the presenting view controller are removed after the presentation completes.

When presenting a view controller in a popover, this presentation style is supported only if the transition style is [`UIModalTransitionStyle.coverVertical`](/documentation/UIKit/UIModalTransitionStyle/coverVertical). Attempting to use a different transition style triggers an exception. However, you may use other transition styles (except the partial curl transition) if the parent view controller is not in a popover.

---

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)