---
title: presentationStyle
framework: messages
role: symbol
role_heading: Instance Property
path: messages/msmessagesappviewcontroller/presentationstyle
---

# presentationStyle

The extension’s current presentation style.

## Declaration

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

## Discussion

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 style. The user selects a message in the transcript that represents one of the extension’s MSMessage objects: The Messages app launches the extension using the 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(_:) method.

## See Also

### Working with Presentation Styles and Contexts

- [requestPresentationStyle(_:)](messages/msmessagesappviewcontroller/requestpresentationstyle(_:).md)
- [willTransition(to:)](messages/msmessagesappviewcontroller/willtransition(to:).md)
- [didTransition(to:)](messages/msmessagesappviewcontroller/didtransition(to:).md)
- [MSMessagesAppPresentationStyle](messages/msmessagesapppresentationstyle.md)
- [presentationContext](messages/msmessagesappviewcontroller/presentationcontext.md)
- [MSMessagesAppPresentationContext](messages/msmessagesapppresentationcontext.md)
