File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
BDKSwiftExampleWallet/View Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,11 @@ import SwiftUI
9
9
10
10
struct ActivityHomeHeaderView : View {
11
11
12
- enum State {
13
- case synced
14
- case fullSyncing( inspectedScripts: UInt64 )
15
- case syncing( progress: Float , inspectedScripts: UInt64 , totalScripts: UInt64 )
16
- case notStarted
17
- case error( Error )
18
- }
19
-
20
- let state : State
12
+ let walletSyncState : WalletSyncState
13
+ let progress : Float
14
+ let inspectedScripts : UInt64
15
+ let totalScripts : UInt64
16
+ let needsFullScan : Bool
21
17
22
18
let showAllTransactions : ( ) -> Void
23
19
Original file line number Diff line number Diff line change @@ -43,7 +43,11 @@ struct WalletView: View {
43
43
44
44
VStack {
45
45
ActivityHomeHeaderView (
46
- state: viewModel. activityHeaderStateSync
46
+ walletSyncState: viewModel. walletSyncState,
47
+ progress: viewModel. progress,
48
+ inspectedScripts: viewModel. inspectedScripts,
49
+ totalScripts: viewModel. totalScripts,
50
+ needsFullScan: viewModel. needsFullScan
47
51
) {
48
52
showAllTransactions = true
49
53
}
You can’t perform that action at this time.
0 commit comments