     @IBOutlet weak var powerOffSlideViewTrailingConstraint: NSLayoutConstraint!
     @IBOutlet weak var cancelStackView: UIStackView!
     
+    var originalBrightness: CGFloat?
     var initialBrightness = CGFloat(0)
     
     public required init() {

    public override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        
        // Animate in the views
        UIView.animateKeyframes(withDuration: 0.6, delay: 0, options: [.calculationModeCubic], animations: {
            UIView.addKeyframe(withRelativeStartTime: 0, relativeDuration: 0.6, animations: { 

        }, completion: nil)
    }
    
    public override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        
        // Reset screen brightness when leaving view
        if let originalBrightness = originalBrightness {
            UIScreen.main.brightness = originalBrightness
        }
    }
    
    // MARK: - Working with Power Off Slider
    
    private func setupPowerOffSliderView() {
