taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit db2ab953e2cbeb089ab98165616aa991ae59e5e7
parent 63c574456501f90b58f8a9bfdd081efdcec674ee
Author: Marc Stibane <marc@taler.net>
Date:   Sun, 21 Jun 2026 08:47:07 +0200

Keep OIM in faceUp

Diffstat:
MTalerWallet1/Controllers/Controller.swift | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/TalerWallet1/Controllers/Controller.swift b/TalerWallet1/Controllers/Controller.swift @@ -158,8 +158,15 @@ class Controller: ObservableObject { private var diagnosticModeObservation: NSKeyValueObservation? #if OIM + private var lastOIMmode: UIDeviceOrientation = .portrait func setOIMmode(for newOrientation: UIDeviceOrientation, _ sheetActive: Bool) { + if lastOIMmode == .landscapeRight { + if newOrientation == .faceUp { + return + } + } let isLandscapeRight = newOrientation == .landscapeRight + lastOIMmode = newOrientation oimSheetActive = sheetActive && isLandscapeRight oimModeActive = sheetActive ? false : isLandscapeRight