make filter buttons entire width and change appearance
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user