ObjectAssociation
Meet
🏵 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
}
}
}