Closed sindresorhus closed 1 year ago
By using the custom bridge, Defaults
will only use this bridge to serialize. Type Serializable
in custom bridge should be UserDefaults
native supported type. But I think this might be a bit awkward.
I think we may need to check whether the value is serializable in the array bridge and if so, use its serializer.
This is a great way to improve this kind of situation. I will try to implement it 😃 !
Error:
@hank121314 I think we may need to check whether the value is serializable in the array bridge and if so, use its serializer. I'm not sure though. I might be doing something wrong too. However, we should never let it hard crash.