File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
BDKSwiftExampleWallet/View/Activity Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ struct TransactionDetailView: View {
22
22
VStack {
23
23
24
24
VStack ( spacing: 8 ) {
25
- Image ( " bitcoinsign.arrow.up " )
26
- . symbolRenderingMode ( . hierarchical)
27
- . font ( . title)
28
25
HStack ( spacing: 3 ) {
29
26
let sentAndReceivedValues = viewModel. getSentAndReceived (
30
27
tx: canonicalTx. transaction
@@ -33,9 +30,19 @@ struct TransactionDetailView: View {
33
30
let sent = value. sent
34
31
let received = value. received
35
32
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
+ }
37
39
} 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
+ }
39
46
} else {
40
47
Text ( " ? " )
41
48
}
You can’t perform that action at this time.
0 commit comments