make filter buttons entire width and change appearance

This commit is contained in:
Trey t
2022-01-15 18:17:30 -06:00
parent 7c2de764b4
commit b55af0f280

View File

@@ -179,14 +179,18 @@ struct FilterView: View {
} }
private var filterButon: some View { private var filterButon: some View {
Button(action: { Button(action: {
withAnimation{ withAnimation{
showFilter.toggle() showFilter.toggle()
} }
}, label: { }, label: {
Text(showFilter ? "Close Filter" : "Filter") Text(showFilter ? "Close Filters" : "Show Filters")
.textCase(.uppercase) .frame(maxWidth: .infinity)
}) .frame(height: 44)
.foregroundColor(Color(UIColor.label))
.background(Color(UIColor.secondarySystemBackground))
.cornerRadius(25)
}).frame(maxWidth: .infinity)
} }
struct StatsSubView: View { struct StatsSubView: View {