Closed mickeyl closed 7 months ago
Indeed, due to the dependency on ObjectiveC, the build was failing on Linux.
https://swiftpackageindex.com/p-x9/AssociatedObject/builds
The basic implementation by Apple of associatedObject is found in the following.
A similar implementation might allow for similar functionality outside of the Apple platform.
Hello, @mickeyl It's been some time, but I just created a library of Associated object that can work on Linux and other platforms.
https://github.com/p-x9/swift-object-association
I would like to consider including its introduction to this AssociatedObject
Macro in the future.
Naturally this only works on platforms where Swift is backed by an Objective-C runtime. I wonder how we could extend this to other platforms where this isn‘t available, perhaps using a global in memory storage area?