DynamicOverlay icon indicating copy to clipboard operation
DynamicOverlay copied to clipboard

When using on Driving ScrollView, if there is a multi-scroll view, it is not recognized.

Open NewHooon opened this issue 11 months ago • 1 comments

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
    }

NewHooon avatar Apr 24 '25 06:04 NewHooon

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 :(

gaetanzanella avatar May 17 '25 14:05 gaetanzanella