Associated objects with swift’s strict concurrency
I’m curious if anyone has found a way to use associated objects within Swift’s strict concurrency model. The objective c based function calls (objc_setAssociatedObject
and objc_getAssociatedObject
) have a const void *key
argument. Typically, this is obtained by having a private global variable which is passed as an inout argument.
Associated objects with swift’s strict concurrency
I’m curious if anyone has found a way to use associated objects within Swift’s strict concurrency model. The objective c based function calls (objc_setAssociatedObject
and objc_getAssociatedObject
) have a const void *key
argument. Typically, this is obtained by having a private global variable which is passed as an inout argument.