Skip to content

Releases: p-x9/AssociatedObject

0.12.0

31 Aug 23:32
b60794c
Compare
Choose a tag to compare

What's Changed

  • Adapt SwiftSyntax repository URL by @p-x9 in #43

Full Changelog: 0.11.0...0.12.0

v0.11.0

05 May 00:02
01d6e85
Compare
Choose a tag to compare

What's Changed

  • Support swift-syntax version 510.0.0 by @p-x9 in #42

Full Changelog: 0.10.3...0.11.0

v0.10.3

03 Apr 04:39
7988b0e
Compare
Choose a tag to compare

What's Changed

  • Fixed associated object key issues in release builds by @p-x9 in #40
  • version 0.10.3 by @p-x9 in #41

Full Changelog: 0.10.2...0.10.3

v0.10.2

28 Mar 07:54
18f87a7
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.10.1...0.10.2

v0.10.1

26 Feb 05:11
a82277a
Compare
Choose a tag to compare

What's Changed

  • Skip macro expansion test cases on unsupported platform by @p-x9 in #33
  • Fix 'duplicate symbol __associated_object_key' error by @p-x9 in #35

Full Changelog: 0.10.0...0.10.1

v0.10.0

02 Feb 18:24
654b88c
Compare
Choose a tag to compare

What's Changed

  • Support for non-apple platform by @p-x9 in #32

Full Changelog: 0.9.0...0.10.0

v0.9.0

27 Jan 00:24
8977c1f
Compare
Choose a tag to compare

What's Changed

  • Use swift-literal-type-inference for type inference by @p-x9 in #31

Full Changelog: 0.8.0...0.9.0

v0.8.0

26 Jan 12:15
fc935c8
Compare
Choose a tag to compare

What's Changed

  • default value should set to AssociatedObject by @mlch911 in #22
  • Rewrite test cases using swift-macro-testing by @p-x9 in #26
  • Check if defaultValue has already been set by @p-x9 in #27
  • Fix Bug: Optional & ImplicitlyUnwrappedOptional by @mlch911 in #25
  • Add CocoaPods Support by @mlch911 in #23
  • Add Support for custom Store Key by @mlch911 in #24
  • Improve key implementation by @p-x9 in #28
  • version 0.8.0 by @p-x9 in #30

Full Changelog: 0.7.0...0.8.0

v0.7.0

18 Jan 13:42
ee63e32
Compare
Choose a tag to compare

What's Changed

Support type inference

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"]

New Contributors

Full Changelog: 0.6.0...0.7.0

v0.6.0

03 Nov 23:34
ac2684b
Compare
Choose a tag to compare

What's Changed

  • Modern writing style by @p-x9 in #18
    Both previous and new writing styles are available.
import AssociatedObject

extension UIViewController {
    @AssociatedObject(.OBJC_ASSOCIATION_RETAIN_NONATOMIC)
    var text = "text"

    /*  ↓↓↓  */

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

Full Changelog: 0.5.0...0.6.0