 
                 UIView.animateWithDuration(1.0, animations: { [unowned self] in
                     self.brightnessLabel.alpha = 0.0
-                    })
+                })
 
             case .Cancelled, .Failed:
                 resetBrightness()

        }
    }

    // MARK: - Notifications handlers

    func resetBrightness() {
        brightness = CGFloat(Settings.brightness)


class ScreenViewController: UIViewController {

    // MARK: Properties

    var brightness: CGFloat = 0.0
    var lightOn: Bool = false

