taler-ios

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

commit 70b98590a87691aea23f9613677518c99c38ec51
parent 2dc6cb30f05d17f136a8036dda56d2da94239554
Author: Marc Stibane <marc@taler.net>
Date:   Wed, 23 Jul 2025 05:57:03 +0200

Identifiable

Diffstat:
MTalerWallet1/Model/Model+Balances.swift | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/TalerWallet1/Model/Model+Balances.swift b/TalerWallet1/Model/Model+Balances.swift @@ -18,7 +18,14 @@ enum BalanceFlag: String, Codable { } /// A currency balance -struct Balance: Decodable, Hashable, Sendable { +struct Balance: Identifiable, Decodable, Hashable, Sendable { + var id: String { + if let url = scopeInfo.url { + return url + } + return scopeInfo.currency + } + var scopeInfo: ScopeInfo var available: Amount var pendingIncoming: Amount