taler-ios

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

commit c9737bd7abda0019abce7f04cb7745424f94864f
parent 5abdf4c033e91f9eb949f20507a4129645a014b6
Author: Marc Stibane <marc@taler.net>
Date:   Mon, 14 Jul 2025 21:01:16 +0200

fix "tried to update multiple times per frame"

Diffstat:
MTalerWallet1/Views/Transactions/TransactionRowView.swift | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Views/Transactions/TransactionRowView.swift b/TalerWallet1/Views/Transactions/TransactionRowView.swift @@ -269,10 +269,14 @@ struct TransactionRowView: View { .opacity(isLayoutSelected(3) ? 1 : 0) } .onPreferenceChange(LayoutTruncationStatus0.self) { stati in // top string - self.layoutStati0 = stati + DispatchQueue.main.async { + self.layoutStati0 = stati + } } .onPreferenceChange(LayoutTruncationStatus1.self) { stati in // Timeline - self.layoutStati1 = stati + DispatchQueue.main.async { + self.layoutStati1 = stati + } } } .accessibilityElement(children: .combine)