taler-ios

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

commit fc7dea230b0971163c5c511a1f17c6cbf4719f9b
parent 6605eb3cc30c12977417f75fb701d80e3061881e
Author: Marc Stibane <marc@taler.net>
Date:   Thu, 16 Jul 2026 09:18:14 +0200

Notifications

Diffstat:
MTalerWallet1/Controllers/PublicConstants.swift | 8++++++--
MTalerWallet1/Model/Model+Exchange.swift | 5+----
2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/TalerWallet1/Controllers/PublicConstants.swift b/TalerWallet1/Controllers/PublicConstants.swift @@ -43,6 +43,7 @@ public let ICONLEADING = CGFloat(-8) public let HSPACING = CGFloat(10) // space between items in HStack public let LAUNCHDURATION: Double = 1.60 +public let BANNERDURATION: Double = 0.666 public let ONEDAY: UInt = 1 // 1..3 public let SEVENDAYS: UInt = 7 // 3..9 @@ -208,6 +209,7 @@ public let TRANSACTIONID = "transactionID" public let NOTIFICATIONTIME = "notif.time" public let NOTIFICATIONERROR = "notif.error" +public let NOTIFICATIONPHASE = "notif.phase" public let NOTIFICATIONANIMATION = "notif.animation" public let NOTIFICATIONSHARE = "notif.share" public let NOTIFICATIONPASTE = "notif.paste" @@ -219,8 +221,10 @@ extension Notification.Name { static let BankAccountChange = Notification.Name(AccountChange.TransitionType.change.rawValue) static let ExchangeAdded = Notification.Name("exchange-added") static let ExchangeDeleted = Notification.Name("exchange-deleted") - static let ExchangeStateTransition = Notification.Name(ExchangeTransition.TransitionType.transition.rawValue) - static let TransactionStateTransition = Notification.Name(TransactionTransition.TransitionType.transition.rawValue) + static let ExchangeStateTransition = Notification.Name("exchange-state-transition") + static let RequestProgressPhase = Notification.Name("request-progress-phase") + static let RequestProgressError = Notification.Name("request-progress-error") + static let TransactionStateTransition = Notification.Name("transaction-state-transition") static let TransactionDone = Notification.Name("transaction-done") static let TransactionExpired = Notification.Name("transaction-expired") static let TransactionScanned = Notification.Name("transaction-scanned") diff --git a/TalerWallet1/Model/Model+Exchange.swift b/TalerWallet1/Model/Model+Exchange.swift @@ -59,10 +59,7 @@ struct ExchangeState: Codable, Hashable { } struct ExchangeTransition: Codable { // Notification - enum TransitionType: String, Codable { - case transition = "exchange-state-transition" - } - var type: TransitionType + var type: String // exchange-state-transition var exchangeBaseUrl: String var oldExchangeState: ExchangeState var newExchangeState: ExchangeState