commit f513e92c4f6ac1f9f42e1933baeb1924bdc0597f
parent 99d5f1ac7ddb4bc76ae9ed398a6af463bdfef4d1
Author: Marc Stibane <marc@taler.net>
Date: Tue, 27 Jun 2023 14:51:00 +0200
bugfix
Diffstat:
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/TalerWallet1/Controllers/Controller.swift b/TalerWallet1/Controllers/Controller.swift
@@ -14,12 +14,12 @@ enum BackendState {
case error
}
-enum UrlCommand: String {
+enum UrlCommand {
case unknown
case withdraw
case pay
- case payPull = "pay-pull"
- case payPush = "pay-push"
+ case payPull
+ case payPush
}
// MARK: -
@@ -35,8 +35,9 @@ class Controller: ObservableObject {
backendState = .instantiated
}
- @MainActor func initWalletCoreM(_ model: WalletModel)
- async throws { // M for MainActor
+ @MainActor
+ func initWalletCore(_ model: WalletModel)
+ async throws {
if backendState == .instantiated {
backendState = .initing
do {
diff --git a/TalerWallet1/Views/Transactions/TransactionDetailView.swift b/TalerWallet1/Views/Transactions/TransactionDetailView.swift
@@ -155,6 +155,7 @@ struct TransactionDetailView: View {
if let destination = URL(string: confirmationUrl) {
// Show Hint that User should Confirm on bank website
Text("Waiting for bank confirmation")
+ .multilineTextAlignment(.leading)
.listRowSeparator(.hidden)
Link("Confirm with bank", destination: destination)
.buttonStyle(TalerButtonStyle(type: .prominent, narrow: false, aligned: .center))