commit 4fb9fe50ab11f271c92618fefab7335f3ea49d65 parent 0507e668113f8cdea6d0bfff667c81cb67c36a1b Author: Marc Stibane <marc@taler.net> Date: Wed, 23 Jul 2025 20:51:30 +0200 cleanup Diffstat:
| M | TalerWallet1/Views/OIM/OIMSubjectView.swift | | | 14 | +++++++++----- |
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/TalerWallet1/Views/OIM/OIMSubjectView.swift b/TalerWallet1/Views/OIM/OIMSubjectView.swift @@ -76,6 +76,14 @@ struct OIMSubjectView: View { } } + func dismissNoTransaction() { + var transaction = Transaction() + transaction.disablesAnimations = true + withTransaction(transaction) { + dismiss() + } + } + var body: some View { // let _ = Self._printChanges() let currency = cash.currency @@ -110,11 +118,7 @@ struct OIMSubjectView: View { canEdit: false) .scaleEffect(selectedGoal == nil ? 0.6 : 1) .onTapGesture { - var transaction = Transaction() - transaction.disablesAnimations = true - withTransaction(transaction) { - dismiss() - } + dismissNoTransaction() } } // .border(.red)