Previously this used UIDevice.ows_setOrientation, an undocumented hack to basically lie to the device about which way is up. This sounds sketchy, but it's the result of a lot of testing various solutions for something that could reliably force the app into portrait orientation. However, every UIWindow has its own "supported orientations", provided by the root view controller. And calls are implemented in their own UIWindow (so that they don't disrupt whatever you were doing). So for *calls specifically*, we can use supportedInterfaceOrientations to force the app into portrait mode. All other callers of UIDevice.ows_setOrientation work in the shared main window, so they'll be left alone. This only changes things for the call window. |
||
|---|---|---|
| .. | ||
| AudioFiles | ||
| Images.xcassets | ||
| Lottie | ||
| NSE-Images.xcassets | ||
| Settings.bundle | ||
| Sounds | ||
| src | ||
| test | ||
| translations | ||
| .swiftlint.yml | ||
| iTunesArtwork@3x.png | ||
| main.m | ||
| Signal-AppStore.entitlements | ||
| Signal-Info.plist | ||
| Signal-Prefix.pch | ||
| Signal.entitlements | ||
| SignalTSan.supp | ||
| SignalUBSan.supp | ||