I want my subclass of MSMessagesAppViewController to be portrait-only, is there a way to lock the orientation?
My plist contains
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
And I tried overriding
override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
return .portrait
}
But I am still able to rotate the device and see my layout in landscape. I suppose this is related to the fact that iMessage apps are extensions, is that right? Is there a way?