    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    // MARK: - User interactions

    @objc func dismissDialog(_ sender: UITapGestureRecognizer) {
        guard sender.state == .ended else { return }

        let tappedAtPoint = sender.location(in: view)

        if !containerView.frame.contains(tappedAtPoint) {