fix(ColorBridge): using init(cgColor:) to create `Color` in iOS.
This commit is contained in:
parent
bf867ea492
commit
3919bc1efa
|
@ -446,11 +446,11 @@ extension Defaults {
|
|||
guard let nativeColor = NativeColor(cgColor: cgColor) else {
|
||||
return nil
|
||||
}
|
||||
#else
|
||||
let nativeColor = NativeColor(cgColor: cgColor)
|
||||
#endif
|
||||
|
||||
return Value(nativeColor)
|
||||
#else
|
||||
return Value(cgColor: cgColor)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue