<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Messages",
  "identifier" : "/documentation/Messages/MSMessagesAppViewController/presentationStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Messages"
    ],
    "preciseIdentifier" : "c:objc(cs)MSMessagesAppViewController(py)presentationStyle"
  },
  "title" : "presentationStyle"
}
-->

# presentationStyle

The extension’s current presentation style.

```
var presentationStyle: MSMessagesAppPresentationStyle { get }
```

## Discussion

The presentation style defines how the extension appears in the Messages app. The property’s value is set by the following actions:

- The user selects the extension in the app drawer: The Messages app launches the extension using the [`MSMessagesAppPresentationStyle.compact`](/documentation/Messages/MSMessagesAppPresentationStyle/compact) style.
- The user selects a message in the transcript that represents one of the extension’s [`MSMessage`](/documentation/Messages/MSMessage) objects: The Messages app launches the extension using the [`MSMessagesAppPresentationStyle.expanded`](/documentation/Messages/MSMessagesAppPresentationStyle/expanded) style.
- The user taps the collapse and expand buttons while the extension is running: The Messages app changes the current presentation style.
- You programmatically set the presentation style by calling the [`requestPresentationStyle(_:)`](/documentation/Messages/MSMessagesAppViewController/requestPresentationStyle(_:)) method.

---

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)