Latest 1.1.0
Homepage https://github.com/Meniny/ObjectAssociation
License MIT
Platforms ios 8.0, tvos 9.0, watchos 2.0, osx 10.10
Frameworks Foundation
Authors




VersionAuthorBuild PassingSwift
PlatformsMIT
CocoapodsCarthageSPM

What’s this?

ObjectAssociation is an object association helper for Swift extensions.

Requirements

  • iOS 8.0+
  • tvOS 9.0+
  • watchOS 2.0+
  • macOS 10.10+
  • Xcode 8 with Swift 3

Installation

CocoaPods

use_frameworks!
pod 'ObjectAssociation'

Contribution

You are welcome to fork and submit pull requests.

License

ObjectAssociation is open-sourced software, licensed under the MIT license.

Sample

import ObjectAssociation

extension NSObject {

  private static let association = ObjectAssociation<String>()

  public var uniqueIdentifier: String? {
    get {
      return NSObject.association[self]
    }
    set {
      NSObject.association[self] = newValue
    }
  }
}

Latest podspec

{
    "name": "ObjectAssociation",
    "version": "1.1.0",
    "summary": "An object association helper for Swift extensions.",
    "homepage": "https://github.com/Meniny/ObjectAssociation",
    "license": "MIT",
    "authors": {
        "Elias Abel": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Meniny/ObjectAssociation.git",
        "tag": "1.1.0"
    },
    "platforms": {
        "ios": "8.0",
        "tvos": "9.0",
        "watchos": "2.0",
        "osx": "10.10"
    },
    "source_files": "ObjectAssociation/*.*",
    "module_name": "ObjectAssociation",
    "public_header_files": "ObjectAssociation/*.h",
    "frameworks": "Foundation",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This