MOBCore 4.1.0

MOBCore 4.1.0

测试测试版
语言语言 SwiftSwift
许可证 MIT
发布上次发布2023年11月
SPM支持 SPM

Moballo, LLC 维护。



MOBCore 4.1.0

  • 作者:
  • Jason Morcos - Moballo, LLC

MOBCore

可用于简化众多应用程序开发的核心代码。

使用 MOBCore,可以快速简单地实现云端/群组/本地默认设置。使用 MOBCore,添加所有您期望内建对象拥有的功能。简化开发并花费更多时间处理困难的事务。


使用 CocoaPods 导入

  use_frameworks!
  pod 'MOBCore'

设置默认值

在任何文件中

文件顶部,类作用域外部(全局)

import MOBCore
var Defaults = MOBDefaults(group: "app.group", keychain: "app.secureKeychainGroup")

在任何控制器内使用MOBDefaults

Defaults.local()//defaults only within your app
Defaults.shared()//defaults shared between apps in an app group
defaults.cloud()//defaults shared via icloud
defualts.keychain()//defaults encrypted and only shared within your app (password storage)

Usage:
Defaults.local().set(string: "HI", forKey: "storedValue")
Defaults.local().string(forKey: "storedValue")//"HI"
//Note, when using MOBDefaults you no longer have to call the "synchronize()" method! Defaults are automatically kept in sync. 

使用扩展和更多功能

在你的任何文件中添加所需的功能

在文件顶部

import MOBCore

像做馅饼一样简单!享受吧!