From 65f76492f4bf9560373e05c9b35acfaaadbfa8c0 Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 3 Mar 2025 15:44:29 -0600 Subject: [PATCH] fix: remove loading view --- .../Resources/Localizable.xcstrings | 3 --- BDKSwiftExampleWallet/View/HomeView.swift | 20 ++++++++----------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/BDKSwiftExampleWallet/Resources/Localizable.xcstrings b/BDKSwiftExampleWallet/Resources/Localizable.xcstrings index e4de74e8..94bdee9f 100644 --- a/BDKSwiftExampleWallet/Resources/Localizable.xcstrings +++ b/BDKSwiftExampleWallet/Resources/Localizable.xcstrings @@ -421,9 +421,6 @@ } } } - }, - "Loading wallet..." : { - }, "Navigation Title" : { "extractionState" : "stale", diff --git a/BDKSwiftExampleWallet/View/HomeView.swift b/BDKSwiftExampleWallet/View/HomeView.swift index daab1a49..119e31b6 100644 --- a/BDKSwiftExampleWallet/View/HomeView.swift +++ b/BDKSwiftExampleWallet/View/HomeView.swift @@ -15,18 +15,14 @@ struct HomeView: View { ZStack { Color(uiColor: UIColor.systemBackground) - if !viewModel.isWalletLoaded { - ProgressView("Loading wallet...") - } else { - WalletView( - viewModel: .init( - bdkClient: .live, - priceClient: .live - ), - sendNavigationPath: $navigationPath - ) - .tint(.primary) - } + WalletView( + viewModel: .init( + bdkClient: .live, + priceClient: .live + ), + sendNavigationPath: $navigationPath + ) + .tint(.primary) } .onAppear { viewModel.loadWallet()