diff --git a/targets/ShieldConfiguration/ShieldConfigurationExtension.swift b/targets/ShieldConfiguration/ShieldConfigurationExtension.swift index 7d0325e..ad6ed3c 100644 --- a/targets/ShieldConfiguration/ShieldConfigurationExtension.swift +++ b/targets/ShieldConfiguration/ShieldConfigurationExtension.swift @@ -81,7 +81,7 @@ func getShieldConfiguration(placeholders: [String: String?]) let shield = ShieldConfiguration( backgroundBlurStyle: config["backgroundBlurStyle"] != nil - ? UIBlurEffect.Style.init(rawValue: config["backgroundBlurStyle"] as! Int) : nil, + ? (config["backgroundBlurStyle"] as? Int).flatMap(UIBlurEffect.Style.init) : nil, backgroundColor: backgroundColor, icon: resolveIcon(dict: config), title: buildLabel(text: title, with: titleColor, placeholders: placeholders),