You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set accent color to system orange in assets folder. And in code
staticlettraceColor=Defaults.Key<Color>("traceColor", default:Color.orange) // works
staticlettraceColor=Defaults.Key<Color>("traceColor", default:Color.accentColor) // doesn't work
when reset the default key,
Defaults.reset(.traceColor)
The accentColor set by reset is the system default blue instead my own setting orange. Any idea?
Defaults 7.2.0
Xcode 14.3.1 (14E300b)
iOS 16.5
The text was updated successfully, but these errors were encountered:
I don't think there's much we can do about this other than documenting the behavior. Color is not directly serializable, so the serialization works by first converting to UIColor/NSColor and then using the native color serialization.
As a workaround, you could store UIColor.tintColor and then just wrap it in Color() where you use it.
I set accent color to system orange in assets folder. And in code
when reset the default key,
The accentColor set by reset is the system default blue instead my own setting orange. Any idea?
Defaults 7.2.0
Xcode 14.3.1 (14E300b)
iOS 16.5
The text was updated successfully, but these errors were encountered: