Contents

requestPresentationStyle(_:)

Asks the extension’s user interface to transition to the provided style.

Declaration

func requestPresentationStyle(_ presentationStyle: MSMessagesAppPresentationStyle)

Parameters

Discussion

Use this method when you need to change the extension’s presentation style. Keep in mind that the user should have ultimate control over the extension’s presentation style. If the user chooses to change the presentation style, you want to respect that choice.

If you call this method on a view controller with a MSMessagesAppPresentationStyle.transcript presentation style (which is a controller that’s presenting an interactive view in the transcript), the system creates a new instance of the view controller and displays it using the provided presentation style.

See Also

Working with Presentation Styles and Contexts