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 {
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user