Skip to content

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

@NewHooon

Description

@NewHooon

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
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions