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)
|
yearGridView(yearData: yearData, columns: columns)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.simultaneousGesture(DragGesture().onChanged({ _ in
|
||||||
|
withAnimation{
|
||||||
|
showFilter = false
|
||||||
|
}
|
||||||
|
}))
|
||||||
.padding()
|
.padding()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user