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