From bdb18f6af73a207da8635bf9a9fefd6ba50f3584 Mon Sep 17 00:00:00 2001 From: Lukas Korba Date: Thu, 21 Apr 2022 14:42:25 +0200 Subject: [PATCH] Issue #283 - drawer animation fixed (#283) --- secant/Features/Home/Views/HomeView.swift | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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) }) } }