SwiftyUserDefaults icon indicating copy to clipboard operation
SwiftyUserDefaults copied to clipboard

Fix value upgraded from version 3

Open azone opened this issue 3 years ago • 3 comments

Version 3 of SwiftyUserDefaults saved Array<String|Int|Float|Double...> as Array in UserDefaults, if upgrade it to version 4 or 5.x, the value will be saved as Codable. Then the values will be lost in the new version.

azone avatar Feb 23 '22 10:02 azone

@sunshinejr could you review this, please?

azone avatar Feb 28 '22 06:02 azone

Version 3 of SwiftyUserDefaults saved Array<String|Int|Float|Double...> as Array in UserDefaults, if upgrade it to version 4 or 5.x, the value will be saved as Codable. Then the values will be lost in the new version.

Another situation is: the developer used UserDefaults directly before, and now is using SwiftyUserDefaults.

azone avatar Mar 02 '22 03:03 azone