APPropertyWrappers 3.2.0

APPropertyWrappers 3.2.0

Anton Plebanovich 维护。



  • Anton Plebanovich

APPropertyWrappers

Swift Package Manager compatible Version License Platform CI Status

为原生 SwiftRxSwift 提供简单和复杂的属性包装。

示例

克隆仓库,然后打开 Pods Project/APPropertyWrappers.xcworkspace

安装

Swift 包管理器

  • 在 Xcode 中选择 文件 > 添加包...
  • 将以下内容复制并粘贴到搜索栏中: https://github.com/APUtils/APPropertyWrappers
  • 点击 添加包
  • 选择 APPropertyWrappersAPPropertyWrappersRxSwift 并点击 添加包

CocoaPods

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

pod 'APPropertyWrappers', '~> 3.2'

要添加 RxSwift 属性包装,请额外添加以下内容

pod 'APPropertyWrappers/RxSwift', '~> 3.2'

用法

@UserDefaultCodable(key: "ViewController_runCounter", defaultValue: 0)
var runCounter: Int

查看示例和测试项目以获取更多详细信息。

贡献

任何贡献都热烈欢迎!您可以通过 GitHub 的拉取请求和问题进行贡献。

作者

Anton Plebanovich, [email protected]

许可证

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