Latest 1.0.5
Homepage https://github.com/bradhilton/PropertyExtensions
License MIT
Platforms ios 8.0, osx 10.9, requires ARC
Authors

PropertyExtensions allows you to easily add stored properties in class extensions:

extension UIView : PropertyExtensions {
  var identifier: String {
    get {
      return getProperty("identifier", initial: "Unknown")
    }
    set {
      setValue(newValue, forProperty: "identifier")
    }
  }
}

Enjoy!

Installation

PropertyExtensions is available through CocoaPods. To install, simply include the following lines in your podfile:

use_frameworks!
pod 'PropertyExtensions'

Be sure to import the module at the top of your .swift files:

import PropertyExtensions

Alternatively, clone this repo or download it as a zip and include the classes in your project.

Author

Brad Hilton, [email protected]

License

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

Latest podspec

{
    "name": "PropertyExtensions",
    "version": "1.0.5",
    "summary": "Add Stored Properties In Swift Class Extensions",
    "description": "PropertyExtensions allows you to dynamically add properties to your class extensions.",
    "homepage": "https://github.com/bradhilton/PropertyExtensions",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Brad Hilton": "[email protected]"
    },
    "source": {
        "git": "https://github.com/bradhilton/PropertyExtensions.git",
        "tag": "1.0.5"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.9"
    },
    "source_files": [
        "PropertyExtensions",
        "PropertyExtensions/**/*.{swift,h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This