Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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"]
++++


{name}



Author
EMail
MIT


Version
Platforms
Swift


Build Passing
Cocoapods
Carthage
SPM


++++

:toc:

== 🏵 Introduction

**{name}** is {desc}.

== 📋 Requirements

[%header]
|===
2+^m|Type 1+^m|Requirement

1.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
}
}
}
----