Created
October 9, 2017 08:08
-
-
Save phucnm/dd264e9212fdeb30e3bac07c6c9b8c36 to your computer and use it in GitHub Desktop.
PassthroughView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PassthroughView: UIView { | |
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { | |
let view = super.hitTest(point, with: event) | |
return view == self ? nil : view | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment