     }
     
     func updateBackground() {
-        lightBackgroundBlur.isHidden = !lightBackground || !translucentBackground
-        darkBackgroundBlur.isHidden = lightBackground || !translucentBackground
-    }
-    
-}
+        let style = lightBackground ? UIBlurEffectStyle.extraLight : .dark
+        let blurEffect = UIBlurEffect(style: style)
+        backgroundBlur.effect = blurEffect
+    }
+    
+}

    func setupViews() {
        let lightStyle = UIBlurEffectStyle.extraLight
        let lightBlurEffect = UIBlurEffect(style: lightStyle)
        lightBackgroundBlur = UIVisualEffectView(effect: lightBlurEffect)
        setupFullSize(lightBackgroundBlur)
        
        let darkStyle = UIBlurEffectStyle.dark
        let darkBlurEffect = UIBlurEffect(style: darkStyle)
        darkBackgroundBlur = UIVisualEffectView(effect: darkBlurEffect)
        setupFullSize(darkBackgroundBlur)
        
        stackView.distribution = .fillEqually
        setupFullSize(stackView)

    
    // MARK: - Private properties
    
    fileprivate var backgroundBlur: UIVisualEffectView!
    fileprivate let stackView = UIStackView()
    fileprivate var buttons = [TabButton]()
    
