My iMessage extension is more or less a picker to select an item to be sent. It doesn't make sense to view the full item in the extension because that would replicate the whole app within the extension. So when the user selects an app message I directly open the host app using openUrl. This works fine, however it still shows the expanded layout briefly and the animation looks ugly.
Here's my code:
override func willBecomeActive(with conversation: MSConversation) {
super.willBecomeActive(with: conversation)
if let url = conversation.selectedMessage?.url {
dismiss()
extensionContext?.open(url, completionHandler: nil)
}
}
I dismiss the extension before opening the URL but apparently this is only executed after it is fully shown.
Do I miss anything how to prevent showing the iMessage extension layout when selecting a message?
Filed as (open) radar 27480594 as well.