Skip to content

Commit 4b2b4f0

Browse files
authored
ui: transaction detail view symbols
1 parent f5fca11 commit 4b2b4f0

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

BDKSwiftExampleWallet/View/Activity/TransactionDetailView.swift

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ struct TransactionDetailView: View {
2222
VStack {
2323

2424
VStack(spacing: 8) {
25-
Image("bitcoinsign.arrow.up")
26-
.symbolRenderingMode(.hierarchical)
27-
.font(.title)
2825
HStack(spacing: 3) {
2926
let sentAndReceivedValues = viewModel.getSentAndReceived(
3027
tx: canonicalTx.transaction
@@ -33,9 +30,19 @@ struct TransactionDetailView: View {
3330
let sent = value.sent
3431
let received = value.received
3532
if sent.toSat() == 0 && received.toSat() > 0 {
36-
Text("Receive")
33+
VStack {
34+
Image("bitcoinsign.arrow.down")
35+
.symbolRenderingMode(.hierarchical)
36+
.font(.title)
37+
Text("Receive")
38+
}
3739
} else if sent.toSat() > 0 && received.toSat() >= 0 {
38-
Text("Send")
40+
VStack {
41+
Image("bitcoinsign.arrow.up")
42+
.symbolRenderingMode(.hierarchical)
43+
.font(.title)
44+
Text("Send")
45+
}
3946
} else {
4047
Text("?")
4148
}

0 commit comments

Comments
 (0)