Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable iMessage App Resizing

I am developing an iMessage app for iPhone. It currently allows the user to press the arrow to resize the app from keyboard size to full screen. For my app, the full screen view is not necessary.

Is it possible to disable the resizing in the iMessage app?

Thank you

like image 638
Tom Coomer Avatar asked Apr 16 '26 12:04

Tom Coomer


1 Answers

I'm afraid this arrow will always call the full screen layout. You'll have to handle both. But here are some ideas:

  • When the user tap the arrow, it will fire the method didTransition(to: MSMessagesAppPresentationStyle). So you could requestPresentationStyle(_ presentationStyle: MSMessagesAppPresentationStyle) with a compact mode. So that when ever it try to go in full screen, it will go back to compact mode
  • Also I'm not sure, but you could maybe use requestPresentationStyle(_ presentationStyle: MSMessagesAppPresentationStyle) to always present compact mode, instead of extend mode.

Also have a look here : https://developer.apple.com/reference/messages/msmessagesappviewcontroller/1649184-requestpresentationstyle

They say this :

Note, however, that the user should have ultimate control over the extension’s presentation style. If the user chooses to change the presentation style, you should respect that choice.

like image 61
RomOne Avatar answered Apr 18 '26 01:04

RomOne



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!