Skip to content

Commit 2e251d4

Browse files
committed
fix: progress calculation
1 parent a97544c commit 2e251d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extension CbfClient {
2424
NotificationCenter.default.post(
2525
name: NSNotification.Name("KyotoProgressUpdate"),
2626
object: nil,
27-
userInfo: ["progress": Float(0.2)]
27+
userInfo: ["progress": Float(1)]
2828
)
2929

3030
components.client.startBackgroundMonitoring()

BDKSwiftExampleWallet/View/Home/ActivityHomeHeaderView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct ActivityHomeHeaderView: View {
7474
Text(
7575
String(
7676
format: "%.0f%%",
77-
progress * 100
77+
progress
7878
)
7979
)
8080
.contentTransition(.numericText())
@@ -138,7 +138,7 @@ struct ActivityHomeHeaderView: View {
138138
case .syncing:
139139
if isKyotoClient && progress > 0 {
140140
AnyView(
141-
ProgressView(value: Double(progress * 100), total: 100)
141+
ProgressView(value: Double(progress), total: 100)
142142
.foregroundStyle(.green)
143143
.frame(width: 20)
144144
.animation(.interactiveSpring, value: progress)

0 commit comments

Comments
 (0)