Skip to content

Instantly share code, notes, and snippets.

@phucnm
Created October 9, 2017 08:52
Show Gist options
  • Save phucnm/83826954592fadae6da066684e95050e to your computer and use it in GitHub Desktop.
Save phucnm/83826954592fadae6da066684e95050e to your computer and use it in GitHub Desktop.
PassthorughWindow
class PassthroughWindow: UIWindow {
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