DynamicOverlay
DynamicOverlay copied to clipboard
When using on Driving ScrollView, if there is a multi-scroll view, it is not recognized.
For example, I think it would be possible to implement a method to identify a ScrollView via ViewTag.
Do you have any plans to support it so that it can be used in a multi scrollView?
func findScrollView(in area: ActivatedOverlayArea,
coordinate: UICoordinateSpace) -> UIScrollView? {
let frame = coordinate.convert(bounds, from: self)
guard area.intersects(frame) else { return nil }
if let result = self as? UIScrollView {
return result
}
for subview in subviews {
if let result = subview.findScrollView(in: area, coordinate: coordinate) {
return result
}
}
return nil
}
Hi @NewHooon, it is in the TODO list https://github.com/applidium/OverlayContainer/issues/83 but nobody has ever taken the time to do it :(