             dialogHeight = 260
         }
         
-        var y = (screenSize.height - dialogHeight) / 2
+        let y = (screenSize.height - dialogHeight) / 2
         contentView.frame = CGRect(x:x, y:y, width:contentWidth, height:dialogHeight)
 
         // offset the header from the content center, compensate for the content's offset

        if let disabledOrDeniedClosure = self.disabledOrDeniedClosure {
            disabledOrDeniedClosure(self.getResultsForConfig())
        }
        var alert = UIAlertController(title: "Permission for \(permission.rawValue) was denied.",
            message: "Please enable access to \(permission.rawValue) in the Settings app",
            preferredStyle: .Alert)
        alert.addAction(UIAlertAction(title: "OK",

        var results: [PermissionResult] = []

        for config in configuredPermissions {
            let status = statusForPermission(config.type)
            let result = PermissionResult(type: config.type, status: status, demands: config.demands)
            results.append(result)
        }
