Skip to content

Tap gesture not working on iOS 10+ #55

@renanstig

Description

@renanstig

Hello,

First, thanks for sharing this library with us, it's really great.
I'm facing a problem which my tap gesture seems not to be recognized by the UIView.
I did a quick search in the list of closed issues and I found out that I should change is enabled property to false.

I did it and set UserInteractionEnabled to true, but even so my tap gesture still don't work. Do you have any idea what I'm doing wrong?
Here's the full code

reviewsNumber.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(self.openReviews(_:)))) reviewsNumber.isEnabled = false reviewsNumber.isUserInteractionEnabled = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions