blob: 8f77accff611a5e54e5b754d567f0adc16ad5c1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//
// NotificationContainerView.swift
// MullvadVPN
//
// Created by pronebird on 03/06/2021.
// Copyright © 2021 Mullvad VPN AB. All rights reserved.
//
import UIKit
final class NotificationContainerView: UIView {
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
let hitView = super.hitTest(point, with: event)
// Pass through taps if no subview was touched
if hitView == self {
return nil
} else {
return hitView
}
}
}
|