Skip to content
This repository was archived by the owner on Sep 14, 2026. It is now read-only.

Fix tapped bugs when make a scale transform for view - #761

Open
devSC wants to merge 2 commits into
nicklockwood:masterfrom
devSC:master
Open

devSC wants to merge 2 commits into
nicklockwood:masterfrom
devSC:master

Conversation

@devSC

@devSC devSC commented Oct 24, 2016

Copy link
Copy Markdown

No description provided.

@RomanVolkov

Copy link
Copy Markdown

Yes, this solution really works, thanks! I have custom transform which makes scalling to and subclassing + overrideing works

override func itemView(at point: CGPoint) -> UIView? {
    for v in self.visibleItemViews {
        if let view = v as? UIView,
            let superview = view.superview {
            if superview.frame.contains(point) {
                return view
            }
        }
    }
    return nil
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants