AssociatedObject
AssociatedObject copied to clipboard
🔗 Swift Macro for allowing variable declarations even in class extensions
I found the associated object will become nil after some time in `Release` mode. I definitely did not set it. I can only assume there may be some other third-party...
This code get an error: `Value of type '(UIView) -> () -> UIView' has no member 'window' ` ```swift @AssociatedObject(.OBJC_ASSOCIATION_RETAIN_NONATOMIC) private var autoMaskView: UIView = { let view = UIView()...
Hey! Faced a strange problem. The following code fails to compile: ```swift protocol TestProtocol: AnyObject { associatedtype Err: Error } private extension TestProtocol { @AssociatedObject(.retain(.nonatomic)) var test: Bool = false...