Latest 0.1.0
Homepage https://github.com/killing333/LazySettings
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

An organized way to save app settings to NSUserDefaults.

When NSUserDefaults is widely used in your source files, it would be hard to trace where your settings load and save. Thus an organized way has come up.

How It Works

Break settings into module and follow the protocol LazySettingsModule, and add the module to shared instance of LazySettings. Now whenever LazySettings saves and loads, so do the modules.

LazySettings would occupy a key of the same name in NSUserDefaults.

For the implementation of a module, please refer to LazySettingsGeneral or LazySettingsLanguage as an example

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 8 or above

Installation

LazySettings is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "LazySettings"

Author

killing333, [email protected]

License

LazySettings is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "LazySettings",
    "version": "0.1.0",
    "summary": "An organized way to save app settings to `NSUserDefaults`.",
    "description": "When `NSUserDefaults` is widely used in your source files, it would be hard to trace where your settings load and save. Thus an organized way has come up.",
    "homepage": "https://github.com/killing333/LazySettings",
    "license": "MIT",
    "authors": {
        "killing333": "[email protected]"
    },
    "source": {
        "git": "https://github.com/killing333/LazySettings.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "LazySettings/Classes/**/*"
}

Pin It on Pinterest

Share This