Skip to content

Commit af89983

Browse files
authored
Merge pull request #18 from TimOliver/swiftui-color
Wrap UIColor inside the SwiftUI struct
2 parents d7db284 + 239b6ea commit af89983

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

BlurUIKit/SwiftUI/VariableBlur.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ public struct VariableBlur: UIViewRepresentable {
108108
/// so its tint can adapt to trait changes. Pass `nil` to remove the dimming gradient
109109
/// entirely. Defaults to `.systemBackground`.
110110
/// - Returns: A modified `VariableBlur` with the updated dimming color.
111-
public func dimmingTintColor(_ color: UIColor?) -> VariableBlur {
111+
public func dimmingTintColor(_ color: Color?) -> VariableBlur {
112112
var copy = self
113-
copy.dimmingTintColor = color
113+
copy.dimmingTintColor = UIColor(color)
114114
return copy
115115
}
116116

0 commit comments

Comments
 (0)