p-x9 / AssociatedObject

🔗 Swift Macro for allowing variable declarations even in class extensions
MIT License
130 stars 4 forks source link

Modern writing style #18

Closed p-x9 closed 12 months ago

p-x9 commented 12 months ago
@AssociatedObject(.OBJC_ASSOCIATION_RETAIN_NONATOMIC)
var text = "text"

 /* ↓↓↓↓↓ */

@AssociatedObject(.retain(nonatomic))
var text = "text"