commit b9502b720d8c6ec032978a60d2b217337c3b9c05 parent 693009aeeb2c34f07c163f086905157bba70886b Author: Marc Stibane <marc@taler.net> Date: Tue, 16 Sep 2025 19:16:15 +0000 OIM sheet handling Diffstat:
| M | TalerWallet1/Views/Main/MainView.swift | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/TalerWallet1/Views/Main/MainView.swift b/TalerWallet1/Views/Main/MainView.swift @@ -240,6 +240,11 @@ struct MainView: View { controller.setOIMmode(for: newOrientation, isSheetActive) tabBarModel.oimActive = controller.oimModeActive ? 1 : 0 } + .onChange(of: showScanner) { newShowScan in + let isSheetActive = showActionSheet || showScanner || showUrlSheet + controller.setOIMmode(for: UIDevice.current.orientation, isSheetActive) + tabBarModel.oimActive = controller.oimModeActive ? 1 : 0 + } #endif .onOpenURL { url in symLog.log(".onOpenURL: \(url)")