commit a9a6b0c2c091b9e82bb771db06945848d6bd83d4
parent 30aba5cbc0c66792890867b91a35e26d37fddab8
Author: Marc Stibane <marc@taler.net>
Date: Fri, 10 Jul 2026 10:44:28 +0200
RotatingTaler with background
Diffstat:
2 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/TalerWallet1/Views/HelperViews/LaunchAnimationView.swift b/TalerWallet1/Views/HelperViews/LaunchAnimationView.swift
@@ -59,16 +59,16 @@ struct RotatingTaler: View {
}
}
}
- if #available(iOS 26.0, *) {
- image
- .glassEffect(.clear)
- } else {
+// if #available(iOS 26.0, *) {
+// image
+// .glassEffect(.clear)
+// } else {
image
.background {
Capsule()
.fill(Color(.systemGray6).opacity(0.7))
}
- }
+// }
}
}
// MARK: -
diff --git a/TalerWallet1/Views/Transactions/TransactionRowView.swift b/TalerWallet1/Views/Transactions/TransactionRowView.swift
@@ -96,6 +96,7 @@ struct TransactionRowView: View {
var common: TransactionCommon { transaction.common }
var done: Bool { transaction.isDone }
+ var isWorking: Bool { transaction.isWorking }
var pending: Bool { transaction.isPending || common.isFinalizing }
var needsKYC: Bool { transaction.isPendingKYC || transaction.isPendingKYCauth }
var doneOrPending: Bool { done || pending }
@@ -238,7 +239,7 @@ struct TransactionRowView: View {
@ViewBuilder func layout3(_ topString: String?, _ textColor: Color, _ for2Color: Color) -> some View {
// top full-width, blue amount trailing, bottom full-width
- VStack(alignment: .leading, spacing: 2) {
+ let row = VStack(alignment: .leading, spacing: 2) {
if let topString {
TruncationDetectingText(topString,
maxLines: 10,
@@ -268,6 +269,13 @@ struct TransactionRowView: View {
.overlay { Color.clear.border(green) }
#endif
}
+ ZStack {
+ row
+ if isWorking {
+ RotatingTaler(size: 80, progress: true, once: false,
+ rotationEnabled: Binding.constant(true))
+ }
+ }
} // layout3
#if TALER_NIGHTLY