Skip to content

Commit 2f7fc24

Browse files
committed
Fix a nil issue around UIColor
1 parent af89983 commit 2f7fc24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

BlurUIKit/SwiftUI/VariableBlur.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public struct VariableBlur: UIViewRepresentable {
110110
/// - Returns: A modified `VariableBlur` with the updated dimming color.
111111
public func dimmingTintColor(_ color: Color?) -> VariableBlur {
112112
var copy = self
113-
copy.dimmingTintColor = UIColor(color)
113+
copy.dimmingTintColor = color.map { UIColor($0) }
114114
return copy
115115
}
116116

0 commit comments

Comments
 (0)