Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

devSC
Copy link

@devSC devSC commented Oct 24, 2016

No description provided.

@RomanVolkov
Copy link

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants