Skip to content

Commit 8718349

Browse files
committed
fix(untested): show block height immediately
1 parent 2a912c8 commit 8718349

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

BDKSwiftExampleWallet/View/Home/ActivityHomeHeaderView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ struct ActivityHomeHeaderView: View {
8888
.animation(.easeInOut, value: inspectedScripts)
8989
.animation(.easeInOut, value: totalScripts)
9090
.animation(.easeInOut, value: progress)
91+
} else if walletSyncState == .synced && isKyotoClient && currentBlockHeight > 0 {
92+
Text("Block \(currentBlockHeight)")
93+
.padding(.trailing, -5.0)
94+
.fontWeight(.semibold)
95+
.contentTransition(.numericText())
96+
.transition(.opacity)
9197
}
9298
}
9399
HStack {

0 commit comments

Comments
 (0)