Skip to content

Commit e0fdeb6

Browse files
committed
format
1 parent 8dc6174 commit e0fdeb6

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

BDKSwiftExampleWallet/Model/BalanceDisplayFormat.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ enum BalanceDisplayFormat: String, CaseIterable, Codable {
1111
case bitcoinSats = "bitcoinSats"
1212
case bitcoin = "btc"
1313
case sats = "sats"
14-
// case bip21q = "bip21q"
14+
// case bip21q = "bip21q"
1515
case fiat = "usd"
1616
case bip177 = "bip177"
1717

1818
var displayText: String {
1919
switch self {
2020
case .sats, .bitcoinSats: return "sats"
2121
case .bitcoin, .bip177: return ""
22-
// case .bip21q: return "₿"
22+
// case .bip21q: return "₿"
2323
case .fiat: return "USD"
2424
}
2525
}

BDKSwiftExampleWallet/View/Home/BalanceView.swift

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -125,32 +125,32 @@ struct BalanceView: View {
125125
fiatPrice: 89000
126126
)
127127
}
128-
#Preview("bitcoin") {
129-
BalanceView(
130-
format: .bitcoin,
131-
balance: 5000,
132-
fiatPrice: 89000
133-
)
134-
}
135-
#Preview("sats") {
136-
BalanceView(
137-
format: .sats,
138-
balance: 5000,
139-
fiatPrice: 89000
140-
)
141-
}
142-
#Preview("bitcoinSats") {
143-
BalanceView(
144-
format: .bitcoinSats,
145-
balance: 5000,
146-
fiatPrice: 89000
147-
)
148-
}
149-
#Preview("fiat") {
150-
BalanceView(
151-
format: .fiat,
152-
balance: 5000,
153-
fiatPrice: 89000
154-
)
155-
}
128+
#Preview("bitcoin") {
129+
BalanceView(
130+
format: .bitcoin,
131+
balance: 5000,
132+
fiatPrice: 89000
133+
)
134+
}
135+
#Preview("sats") {
136+
BalanceView(
137+
format: .sats,
138+
balance: 5000,
139+
fiatPrice: 89000
140+
)
141+
}
142+
#Preview("bitcoinSats") {
143+
BalanceView(
144+
format: .bitcoinSats,
145+
balance: 5000,
146+
fiatPrice: 89000
147+
)
148+
}
149+
#Preview("fiat") {
150+
BalanceView(
151+
format: .fiat,
152+
balance: 5000,
153+
fiatPrice: 89000
154+
)
155+
}
156156
#endif

0 commit comments

Comments
 (0)