sunshinejr / SwiftyUserDefaults

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

Support plist & launch arguments for Bool/String/Double/Int. #180

Closed sunshinejr closed 5 years ago

sunshinejr commented 5 years ago

Fixes #159, fixes #148, supersedes #149.

This resolves the problem with supporting launch bool arguments and still returning nil for false-positives (that bool(for:) returns, e.g. for string test it still returns true or for string blabla it returns false).

Update: Managed to add String, Int and Double as well!

TODO:

sunshinejr commented 5 years ago

:shipit: