close the filter view when user starts to scroll

This commit is contained in:
Trey t
2022-01-30 10:59:40 -06:00
parent c77eecc6e2
commit deb3a84b38

View File

@@ -200,6 +200,11 @@ struct FilterView: View {
yearGridView(yearData: yearData, columns: columns) yearGridView(yearData: yearData, columns: columns)
} }
} }
.simultaneousGesture(DragGesture().onChanged({ _ in
withAnimation{
showFilter = false
}
}))
.padding() .padding()
} }
} }