Needs 0.1.0

Needs 0.1.0

Maintained by Jérôme Alves.



Needs 0.1.0

  • By
  • Jérôme Alves

Needs

Version License Platform

Needs is a small library that let you use a property wrapper to automatically call setNeeds- methods. It works out-of-the-box for all setNeeds- methods available on UIView, UIViewController and NSView. If you need to you can also extend it with your own Need.

Requirements

  • iOS 9.0+ / macOS 10.10+
  • Swift 5.2

Installation

Needs is available through CocoaPods and SwiftPM

Example

Add a Needs property wrapper to one of your properties to call automatically the desired setNeeds- method

@Needs(.layout, .display)
var progress: CGFloat = 0

Author

Jérôme Alves

License

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