Issue #283 - drawer animation fixed (#283)

This commit is contained in:
Lukas Korba 2022-04-21 14:42:25 +02:00 committed by GitHub
parent c832d2822c
commit bdb18f6af7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 8 deletions

View File

@ -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) })
}
}