diff --git a/secant/Features/Home/Views/HomeView.swift b/secant/Features/Home/Views/HomeView.swift index b0c6000..7169a52 100644 --- a/secant/Features/Home/Views/HomeView.swift +++ b/secant/Features/Home/Views/HomeView.swift @@ -27,19 +27,20 @@ struct HomeView: View { Spacer() } - Drawer(overlay: viewStore.bindingForDrawer(), maxHeight: proxy.size.height) { - VStack { - TransactionHistoryView(store: store.historyStore()) - .padding(.top, 10) - - Spacer() + if proxy.size.height > 0 { + Drawer(overlay: viewStore.bindingForDrawer(), maxHeight: proxy.size.height) { + VStack { + TransactionHistoryView(store: store.historyStore()) + .padding(.top, 10) + + Spacer() + } + .applyScreenBackground() } - .applyScreenBackground() } } .applyScreenBackground() .navigationBarHidden(true) - .applyScreenBackground() .onAppear(perform: { viewStore.send(.preparePublishers) }) } }