MSVSettingBundleManager 0.1.2

MSVSettingBundleManager 0.1.2

Serge Moskalenko维护。



  • 作者:
  • Serge Moskalenko

MSVSettingBundleManager

CI Status Version License Platform

MSVSettingBundleManager简化了读取/设置Settings Bundle引擎中的设置以及处理事件设置变更的过程。

示例

https://appetize.io/app/xd75be4jgh3469u67ug7ud72ym

Screen

要运行示例项目,请先克隆仓库,然后从Example目录运行pod install

使用键初始化

    var settings = MSVSettingManager(keys:["shape", "switch"])

设置值

    settings["shape".intDef] = "star"

获取值

    var shape = settings["shape".intDef]

变化事件

    settings.action(key: "shape") { value in
        if value is String {
            let shape = value as! String
            ...
            ...
        }
    }

需求

安装

MSVSettingBundleManager通过CocoaPods提供。要安装它,只需将以下行添加到您的Podfile中

pod 'MSVSettingBundleManager'

作者

Serge Moskalenko, https://github.com/sergemoskalenko

许可

MSVSettingBundleManager是在MIT许可下可用的。有关更多信息,请参阅LICENSE文件。