Displaying customUIView in a ViewController : I am creating a uiView which I want to display in my viewcontroller . I have created the UIView and it shows but the problem I have now are

 1. When I call the uiview in my viewcontroller, I can no longer interact with the elements of the viewcontroller. The CostomView I created has completely prevented the interaction with my viewcontroller and I want to be able to interact with the UIViewcontroller
 2. I want to hide the status bar which includes the battery percentage and networkbar and other things so the view completely covers them. I implemeted a code to cover them but it returns an error.

below is my code

    class SliderView: CustomView {
        
        @IBOutlet weak var containerView: UIView!
        @IBOutlet weak var sliderImage: UIImageView!
        @IBOutlet weak var sliderText: UILabel!
        
        override func initialize() {
            super.initialize()
            
            let name = String(describing: type(of: self))
            let nib = UINib(nibName: name, bundle: .main)
            nib.instantiate(withOwner: self, options: nil)
            
            self.addSubview(self.containerView)
            self.containerView.translatesAutoresizingMaskIntoConstraints = false
            NSLayoutConstraint.activate([
                self.containerView.topAnchor.constraint(equalTo: self.topAnchor),
                self.containerView.leadingAnchor.constraint(equalTo: self.leadingAnchor),
                self.containerView.trailingAnchor.constraint(equalTo: self.trailingAnchor),
                ])
        }
        
        override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
            return sliderImage.frame.contains(point)
        }
        
        override var prefersStatusBarHidden: Bool {
            return true
        }

      // THIS THROWS an error 'Property does not override any property from its superclass'
    }

 

my UIView is called in my Viewcontroller like

     weak var sliderView: SliderView!
        
        override func loadView() {
            super.loadView()
            
            let sliderView = SliderView()
            self.view.addSubview(sliderView)
            NSLayoutConstraint.activate([
                sliderView.topAnchor.constraint(equalTo: self.view.topAnchor),
                sliderView.bottomAnchor.constraint(equalTo: self.view.bottomAnchor),
                sliderView.leadingAnchor.constraint(equalTo: self.view.leadingAnchor),
                sliderView.trailingAnchor.constraint(equalTo: self.view.trailingAnchor),
                ])
            self.sliderView = sliderView
        }
        
        override func viewDidLoad() {
            super.viewDidLoad()
            
            sliderView.sliderText.text = "HOOOOO WORKS"
    }