I have an iMessage Extension in swift that is in expanded presentationStlye when a user taps a button. Once this button is tapped, it should dismiss the view entirely or at least return to compact mode. I am not sure what is wrong. Here is didTransition being called from my button:
self.didTransition(to: MSMessagesAppPresentationStyle.compact)
and the action:
override func didTransition(to presentationStyle: MSMessagesAppPresentationStyle) {
guard presentationStyle == .expanded else { return }
self.dismiss(animated: true) {
}
}
But this is not working. Does anyone know what I am doing wrong?