Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meniny/objectassociation
🚼 An object association helper for Swift extensions.
https://github.com/meniny/objectassociation
association runtime swift
Last synced: about 1 month ago
JSON representation
🚼 An object association helper for Swift extensions.
- Host: GitHub
- URL: https://github.com/meniny/objectassociation
- Owner: Meniny
- License: mit
- Created: 2017-08-21T10:38:55.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-16T04:17:32.000Z (over 5 years ago)
- Last Synced: 2024-09-14T00:05:51.149Z (2 months ago)
- Topics: association, runtime, swift
- Language: Swift
- Size: 42 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE.md
Awesome Lists containing this project
README
:name: ObjectAssociation
:author: Elias Abel
:author_esc: Elias%20Abel
:mail: [email protected]
:desc: an object association helper for Swift extensions
:icon: {name}.png
:version: 1.3.0
:na: N/A
:ios: 8.0
:macos: 10.10
:watchos: 2.0
:tvos: 9.0
:linux: {na}
:xcode: 9.3
:swift: 5
:license: MIT
:sep: %20%7C%20
:platform: iOS{sep}macOS{sep}watchOS{sep}tvOS
= Meet `{name}`
{author} <{mail}>
v{version}, 2019-04-16[subs="attributes"]
++++
++++:toc:
== 🏵 Introduction
**{name}** is {desc}.
== 📋 Requirements
[%header]
|===
2+^m|Type 1+^m|Requirement1.5+^.^|Platform ^|iOS ^|{ios}+
^|macOS ^e|{macos}
^|tvOS ^e|{tvos}
^|watchOS ^e|{watchos}
^|Linux ^e|{linux}^|IDE ^|Xcode ^| {xcode}+
^|Language ^|Swift ^| {swift}+
|===== 📲 Installation
=== CocoaPods
`{name}` is available on link:https://cocoapods.org[CocoaPods].
[source, ruby, subs="verbatim,attributes"]
----
use_frameworks!
pod '{name}'
----=== Manually
Copy all files in the `{name}` directory into your project.
== 🛌 Dependency
{na}
== ❤️ Contribution
You are welcome to fork and submit pull requests.
== 🔖 License
`{name}` is open-sourced software, licensed under the link:./LICENSE.md[`{license}`] license.
== 🔫 Usage
[source, swift, subs="verbatim,attributes"]
----
import {name}extension NSObject {
private static let association = ObjectAssociation()
public var uniqueIdentifier: String? {
get {
return NSObject.association[self]
}
set {
NSObject.association[self] = newValue
}
}
}
----