Skip to content

Commit 742a6a8

Browse files
committed
format
1 parent e5c08f3 commit 742a6a8

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

BDKSwiftExampleWallet/Extensions/BDK+Extensions/CbfClient+Extensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ extension CbfClient {
4848
let info = try await self.nextInfo()
4949
CbfClient.monitoringTasksQueue.sync { Self.lastInfoAt[id] = Date() }
5050
switch info {
51-
case let .progress(progress):
51+
case .progress(let progress):
5252
await MainActor.run {
5353
NotificationCenter.default.post(
5454
name: NSNotification.Name("KyotoProgressUpdate"),
5555
object: nil,
5656
userInfo: ["progress": progress]
5757
)
5858
}
59-
case let .newChainHeight(height):
59+
case .newChainHeight(let height):
6060
await MainActor.run {
6161
NotificationCenter.default.post(
6262
name: NSNotification.Name("KyotoChainHeightUpdate"),

BDKSwiftExampleWallet/Model/BalanceDisplayFormat.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ enum BalanceDisplayFormat: String, CaseIterable, Codable {
1919
switch self {
2020
case .bitcoinSats, .bitcoin, .bip177: return ""
2121
case .fiat: return "$"
22-
default : return ""
22+
default: return ""
2323
}
2424
}
25-
25+
2626
var displayText: String {
2727
switch self {
2828
case .sats, .bitcoinSats: return "sats"
@@ -31,7 +31,7 @@ enum BalanceDisplayFormat: String, CaseIterable, Codable {
3131
case .fiat: return "USD"
3232
}
3333
}
34-
34+
3535
func formatted(_ btcAmount: UInt64, fiatPrice: Double) -> String {
3636
switch self {
3737
case .sats:

BDKSwiftExampleWallet/View/Activity/LocalOutputItemView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct LocalOutputItemView: View {
5656
.redacted(reason: isRedacted ? .placeholder : [])
5757

5858
Spacer()
59-
59+
6060
Group {
6161
HStack {
6262
Text(balanceFormat.displayPrefix)

BDKSwiftExampleWallet/View/Activity/TransactionItemView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct TransactionItemView: View {
1515
let isRedacted: Bool
1616
private let format: BalanceDisplayFormat
1717
private var fiatPrice: Double
18-
18+
1919
init(
2020
txDetails: TxDetails,
2121
isRedacted: Bool,

BDKSwiftExampleWallet/View/Activity/TransactionListView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct TransactionListView: View {
2929
self.format = format
3030
self.fiatPrice = fiatPrice
3131
}
32-
32+
3333
var body: some View {
3434

3535
List {

0 commit comments

Comments
 (0)