reorganize content view

This commit is contained in:
Trey t
2022-01-26 10:07:27 -06:00
parent 389a7f7751
commit 6c96602bff

View File

@@ -183,13 +183,8 @@ struct ContentView: View {
}
}
private var mainView: some View {
ZStack {
BGView().equatable()
VStack{
settingsButtonView
private var headerView: some View {
VStack {
if viewModel.shouldShowVotingHeader() {
AddMoodHeaderView(addItemHeaderClosure: { (mood, date) in
withAnimation {
@@ -207,10 +202,22 @@ struct ContentView: View {
.foregroundColor(Color(UIColor.systemGray))
.frame(maxWidth: .infinity, alignment: .center)
}
listView
.padding(.bottom)
}
.padding(.top, 50)
}
private var mainView: some View {
ZStack {
BGView().equatable()
VStack{
settingsButtonView
headerView
listView
}
.padding(.bottom)
}
}
}