sunshinejr / SwiftyUserDefaults

Modern Swift API for NSUserDefaults
http://radex.io/swift/nsuserdefaults/static
MIT License
4.85k stars 366 forks source link

[WIP] make more integer types DefaultsSerializable #190

Open DivineDominion opened 5 years ago

DivineDominion commented 5 years ago

I started with UInt, but the obvious next step would be to add Int64/32/16/8 and UInt64/32/16/8.

The code is pretty repetitive. In other projects, we used a code generator for this to prevent typos and code that's getting on one's nerves to maintain. But for 8 new types and their tests, we could stick with manual implementations just as well.