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 { private var headerView: some View {
ZStack {
BGView().equatable()
VStack { VStack {
settingsButtonView
if viewModel.shouldShowVotingHeader() { if viewModel.shouldShowVotingHeader() {
AddMoodHeaderView(addItemHeaderClosure: { (mood, date) in AddMoodHeaderView(addItemHeaderClosure: { (mood, date) in
withAnimation { withAnimation {
@@ -207,10 +202,22 @@ struct ContentView: View {
.foregroundColor(Color(UIColor.systemGray)) .foregroundColor(Color(UIColor.systemGray))
.frame(maxWidth: .infinity, alignment: .center) .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)
} }
} }
} }