Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Passes user input to main window if user taps on view of type PassView
- /// Any other view added to this UIWindow will be visible and interactable over the main UIWindow
- public class OverlayWindow: UIWindow {
- override public func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
- if let hitView = super.hitTest(point, with: event), !hitView.isKind(of: PassView.self) {
- return hitView
- } else {
- return nil
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement