reorganize content view
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user