Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.adoc

Meet ObjectAssociation

ObjectAssociation

Author EMail MIT
Version Platforms Swift
Build Passing Cocoapods Carthage SPM

� Introduction

ObjectAssociation is an object association helper for Swift extensions.

šŸ“‹ Requirements

Type Requirement

Platform

iOS

8.0+

macOS

10.10

tvOS

9.0

watchOS

2.0

Linux

N/A

IDE

Xcode

9.3+

Language

Swift

5+

šŸ“² Installation

CocoaPods

ObjectAssociation is available on CocoaPods.

use_frameworks!
pod 'ObjectAssociation'

Manually

Copy all files in the ObjectAssociation directory into your project.

šŸ›Œ Dependency

N/A

�� Contribution

You are welcome to fork and submit pull requests.

šŸ”– License

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

šŸ”« Usage

import ObjectAssociation

extension NSObject {

  private static let association = ObjectAssociation<String>()

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

About

🚼 An object association helper for Swift extensions.

Topics

Resources

License

Packages

No packages published
You can’t perform that action at this time.