close the filter view when user starts to scroll
This commit is contained in:
@@ -200,6 +200,11 @@ struct FilterView: View {
|
||||
yearGridView(yearData: yearData, columns: columns)
|
||||
}
|
||||
}
|
||||
.simultaneousGesture(DragGesture().onChanged({ _ in
|
||||
withAnimation{
|
||||
showFilter = false
|
||||
}
|
||||
}))
|
||||
.padding()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user