🔗 Swift Macro for allowing variable declarations even in class extensions
swift-syntax
version 510.0.0 by @p-x9 in https://github.com/p-x9/AssociatedObject/pull/42
Full Changelog: https://github.com/p-x9/AssociatedObject/compare/0.10.3...0.11.0
Full Changelog: https://github.com/p-x9/AssociatedObject/compare/0.10.2...0.10.3
Full Changelog: https://github.com/p-x9/AssociatedObject/compare/0.10.1...0.10.2
__associated_object_key
' error by @p-x9 in https://github.com/p-x9/AssociatedObject/pull/35
Full Changelog: https://github.com/p-x9/AssociatedObject/compare/0.10.0...0.10.1
Full Changelog: https://github.com/p-x9/AssociatedObject/compare/0.9.0...0.10.0
swift-literal-type-inference
for type inference by @p-x9 in https://github.com/p-x9/AssociatedObject/pull/31
Full Changelog: https://github.com/p-x9/AssociatedObject/compare/0.8.0...0.9.0
swift-macro-testing
by @p-x9 in https://github.com/p-x9/AssociatedObject/pull/26
Full Changelog: https://github.com/p-x9/AssociatedObject/compare/0.7.0...0.8.0
Type specification can now be omitted when initializing using literals such as the following. Thanks: @mlch911
@AssociatedObject(.OBJC_ASSOCIATION_ASSIGN)
var int = 10
@AssociatedObject(.OBJC_ASSOCIATION_ASSIGN)
var boolArray = [true, false]
@AssociatedObject(.OBJC_ASSOCIATION_ASSIGN)
var optionalIntArray = [1, 2, 3, nil]
@AssociatedObject(.OBJC_ASSOCIATION_ASSIGN)
var dic = ["t": "a", "s": "b"]
Full Changelog: https://github.com/p-x9/AssociatedObject/compare/0.6.0...0.7.0
import AssociatedObject
extension UIViewController {
@AssociatedObject(.OBJC_ASSOCIATION_RETAIN_NONATOMIC)
var text = "text"
/* ↓↓↓ */
@AssociatedObject(.retain(.nonatomic))
var text = "text"
}
Full Changelog: https://github.com/p-x9/AssociatedObject/compare/0.5.0...0.6.0
AssociatedObject
macro by @p-x9 in https://github.com/p-x9/AssociatedObject/pull/15
Full Changelog: https://github.com/p-x9/AssociatedObject/compare/0.4.0...0.5.0