Meet ObjectAssociation
š?µ 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
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
}
}
}