commit 3de217767a38b30e1928c59b7b5f6f378427ea0a parent 6264bb40424dee62ff3a11a308f2e1429b17b81f Author: Marc Stibane <marc@taler.net> Date: Wed, 1 Apr 2026 23:06:25 +0200 cleanup Diffstat:
12 files changed, 25 insertions(+), 31 deletions(-)
diff --git a/TalerWallet1/Controllers/TalerWallet1App.swift b/TalerWallet1/Controllers/TalerWallet1App.swift @@ -1,5 +1,5 @@ /* - * This file is part of GNU Taler, ©2022-25 Taler Systems S.A. + * This file is part of GNU Taler, ©2022-26 Taler Systems S.A. * See LICENSE.md */ /** @@ -29,8 +29,8 @@ struct TalerWallet1App: App { private let biometricService = BiometricService.shared func scheduleAppRefresh() { - let request = BGAppRefreshTaskRequest(identifier: "net.taler.gnu.refresh") - request.earliestBeginDate = .now.addingTimeInterval(24 * 3600) + let request = BGAppRefreshTaskRequest(identifier: "net.taler.refresh") + request.earliestBeginDate = .now.addingTimeInterval(4 * 3600) try? BGTaskScheduler.shared.submit(request) } diff --git a/TalerWallet1/Views/Actions/Banking/DepositAmountView.swift b/TalerWallet1/Views/Actions/Banking/DepositAmountView.swift @@ -1,5 +1,5 @@ /* - * This file is part of GNU Taler, ©2022-25 Taler Systems S.A. + * This file is part of GNU Taler, ©2022-26 Taler Systems S.A. * See LICENSE.md */ /** @@ -178,7 +178,7 @@ struct DepositAmountView: View { Text("No balance. There seems to be a problem with the database...") } } - .ignoresSafeArea(.keyboard, edges: .bottom) +// .ignoresSafeArea(.keyboard, edges: .bottom) .onAppear { DebugViewC.shared.setViewID(VIEW_DEPOSIT, stack: stack.push()) symLog.log("❗️ onAppear") diff --git a/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift b/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift @@ -275,9 +275,9 @@ struct ManualWithdrawContent: View { acceptAction: nil) .padding(.top) } - } // Group + } // ScrollView .padding(.horizontal) - .ignoresSafeArea(.keyboard, edges: .bottom) +// .ignoresSafeArea(.keyboard, edges: .bottom) .task(id: amountToTransfer.currencyStr) { await getWithdrawalDetailsForAmount(amountToTransfer, true) } diff --git a/TalerWallet1/Views/Actions/Peer2peer/P2PSubjectV.swift b/TalerWallet1/Views/Actions/Peer2peer/P2PSubjectV.swift @@ -1,5 +1,5 @@ /* - * This file is part of GNU Taler, ©2022-25 Taler Systems S.A. + * This file is part of GNU Taler, ©2022-26 Taler Systems S.A. * See LICENSE.md */ /** @@ -169,7 +169,7 @@ struct P2PSubjectV: View { : EMPTYSTRING) }.padding(.horizontal) } // ScrollVStack // .scrollBounceBehavior(.basedOnSize) needs iOS 16.4 - .ignoresSafeArea(.keyboard, edges: .bottom) +// .ignoresSafeArea(.keyboard, edges: .bottom) .navigationTitle(subjectTitle(amountToTransfer)) .background(WalletColors().backgroundColor.edgesIgnoringSafeArea(.all)) .task(id: amountToTransfer.value) { await checkPeerPushDebit() } diff --git a/TalerWallet1/Views/Actions/Peer2peer/RequestPayment.swift b/TalerWallet1/Views/Actions/Peer2peer/RequestPayment.swift @@ -1,5 +1,5 @@ /* - * This file is part of GNU Taler, ©2022-25 Taler Systems S.A. + * This file is part of GNU Taler, ©2022-26 Taler Systems S.A. * See LICENSE.md */ /** @@ -128,7 +128,7 @@ struct RequestPayment: View { } } // ScrollView .navigationTitle(navTitle) - .ignoresSafeArea(.keyboard, edges: .bottom) +// .ignoresSafeArea(.keyboard, edges: .bottom) .frame(maxWidth: .infinity, alignment: .leading) .background(WalletColors().backgroundColor.edgesIgnoringSafeArea(.all)) .task { await viewDidLoad() } diff --git a/TalerWallet1/Views/Actions/Peer2peer/SendAmountV.swift b/TalerWallet1/Views/Actions/Peer2peer/SendAmountV.swift @@ -140,7 +140,7 @@ struct SendAmountV: View { } } // ScrollView .navigationTitle(navTitle) - .ignoresSafeArea(.keyboard, edges: .bottom) +// .ignoresSafeArea(.keyboard, edges: .bottom) .frame(maxWidth: .infinity, alignment: .leading) .background(WalletColors().backgroundColor.edgesIgnoringSafeArea(.all)) .task { await viewDidLoad() } diff --git a/TalerWallet1/Views/HelperViews/AmountInputV.swift b/TalerWallet1/Views/HelperViews/AmountInputV.swift @@ -1,5 +1,5 @@ /* - * This file is part of GNU Taler, ©2022-25 Taler Systems S.A. + * This file is part of GNU Taler, ©2022-26 Taler Systems S.A. * See LICENSE.md */ /** @@ -87,7 +87,7 @@ struct AmountInputV: View { var body: some View { let currency = amountToTransfer.currencyStr - VStack(alignment: .trailing) { + ScrollView { VStack(alignment: .trailing) { CurrencyInputView(scope: scope, amount: $amountToTransfer, amountLastUsed: amountLastUsed, @@ -108,7 +108,8 @@ struct AmountInputV: View { .buttonStyle(TalerButtonStyle(type: .prominent, disabled: flags.disabled)) .disabled(flags.disabled) .accessibilityHint(flags.disabled ? hint : EMPTYSTRING) - }.padding(.horizontal) + .padding(.bottom, 333) + }.padding(.horizontal) } // ScrollVStack .frame(maxWidth: .infinity, alignment: .leading) .background(WalletColors().backgroundColor.edgesIgnoringSafeArea(.all)) .task(id: amountToTransfer.value) { diff --git a/TalerWallet1/Views/HelperViews/SubjectInputV.swift b/TalerWallet1/Views/HelperViews/SubjectInputV.swift @@ -1,5 +1,5 @@ /* - * This file is part of GNU Taler, ©2022-25 Taler Systems S.A. + * This file is part of GNU Taler, ©2022-26 Taler Systems S.A. * See LICENSE.md */ /** @@ -46,13 +46,6 @@ struct SubjectInputV<TargetView: View>: View { // let disabled = insufficient || summary.isEmpty let disabled = summary.isEmpty ScrollView { VStack(alignment: .leading) { -// if let available { -// Text("Available:\t\(available)") -// .talerFont(.title3) -// .padding(.bottom, 2) -//// .accessibility(sortPriority: 3) -// } - if !minimalistic { Text("Enter subject:") // Purpose .talerFont(.title3) @@ -105,7 +98,7 @@ struct SubjectInputV<TargetView: View>: View { // .accessibility(sortPriority: 0) }.padding(.horizontal) } // ScrollVStack .navigationTitle(navTitle) - .ignoresSafeArea(.keyboard, edges: .bottom) +// .ignoresSafeArea(.keyboard, edges: .bottom) .frame(maxWidth: .infinity, alignment: .leading) .background(WalletColors().backgroundColor.edgesIgnoringSafeArea(.all)) .onAppear() { diff --git a/TalerWallet1/Views/Settings/Bank/BankEditView.swift b/TalerWallet1/Views/Settings/Bank/BankEditView.swift @@ -221,7 +221,7 @@ struct BankEditView: View { }.listRowSeparator(.hidden) } // List .navigationBarItems(trailing: doneButton) - .ignoresSafeArea(.keyboard, edges: .bottom) +// .ignoresSafeArea(.keyboard, edges: .bottom) .onChange(of: focus) { [focus] newState in switch focus { case .none: diff --git a/TalerWallet1/Views/Settings/Exchange/ExchangeListView.swift b/TalerWallet1/Views/Settings/Exchange/ExchangeListView.swift @@ -1,5 +1,5 @@ /* - * This file is part of GNU Taler, ©2022-25 Taler Systems S.A. + * This file is part of GNU Taler, ©2022-26 Taler Systems S.A. * See LICENSE.md */ /** @@ -156,7 +156,7 @@ struct ExchangeListCommonV: View { } } .listStyle(myListStyle.style).anyView - .ignoresSafeArea(.keyboard, edges: .bottom) +// .ignoresSafeArea(.keyboard, edges: .bottom) .refreshable { controller.hapticNotification(.success) symLog?.log("refreshing") diff --git a/TalerWallet1/Views/Sheets/Payment/PayTemplateV.swift b/TalerWallet1/Views/Sheets/Payment/PayTemplateV.swift @@ -1,5 +1,5 @@ /* - * This file is part of GNU Taler, ©2022-25 Taler Systems S.A. + * This file is part of GNU Taler, ©2022-26 Taler Systems S.A. * See LICENSE.md */ /** @@ -217,7 +217,7 @@ struct PayTemplateV: View { summaryIsEditable: summaryIsEditable) } } .navigationTitle(navTitle) - .ignoresSafeArea(.keyboard, edges: .bottom) +// .ignoresSafeArea(.keyboard, edges: .bottom) .frame(maxWidth: .infinity, alignment: .leading) .background(WalletColors().backgroundColor.edgesIgnoringSafeArea(.all)) .onAppear() { diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift @@ -1,5 +1,5 @@ /* - * This file is part of GNU Taler, ©2022-25 Taler Systems S.A. + * This file is part of GNU Taler, ©2022-26 Taler Systems S.A. * See LICENSE.md */ /** @@ -192,7 +192,7 @@ struct WithdrawURIView: View { computeFee: computeFeeWithdraw) .background(actions) } // ScrollView - .ignoresSafeArea(.keyboard, edges: .bottom) +// .ignoresSafeArea(.keyboard, edges: .bottom) } else { acceptDestination } // directly show the accept view