summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Notifications/UI/NotificationContainerView.swift
blob: 58210c1ba7cd9aed4bcc528375ff3ee47df9417e (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 © 2025 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
        }
    }
}