fix(ColorBridge): using init(cgColor:) to create `Color` in iOS.

This commit is contained in:
hank121314 2022-06-06 19:33:33 +08:00
parent bf867ea492
commit 3919bc1efa
1 changed files with 3 additions and 3 deletions

View File

@ -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
}
}
}