APPropertyWrappers 3.2.0

APPropertyWrappers 3.2.0

Maintained by Anton Plebanovich.



  • By
  • Anton Plebanovich

APPropertyWrappers

Swift Package Manager compatible Version License Platform CI Status

Simple and complex property wrappers for native Swift and for RxSwift.

Example

Clone the repo and then open Pods Project/APPropertyWrappers.xcworkspace

Installation

Swift Package Manager

  • In Xcode select File > Add Packages...
  • Copy and paste the following into the search: https://github.com/APUtils/APPropertyWrappers
  • Tap Add Package
  • Select APPropertyWrappers or APPropertyWrappersRxSwift and tap Add Package

CocoaPods

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

pod 'APPropertyWrappers', '~> 3.2'

To add RxSwift property wrappers additionally add:

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

Usage

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

See example and test projects for more details.

Contributions

Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.

Author

Anton Plebanovich, [email protected]

License

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