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 {
Button(action: {
Button(action: {
withAnimation{
showFilter.toggle()
}
}, label: {
Text(showFilter ? "Close Filter" : "Filter")
.textCase(.uppercase)
})
Text(showFilter ? "Close Filters" : "Show Filters")
.frame(maxWidth: .infinity)
.frame(height: 44)
.foregroundColor(Color(UIColor.label))
.background(Color(UIColor.secondarySystemBackground))
.cornerRadius(25)
}).frame(maxWidth: .infinity)
}
struct StatsSubView: View {