Skip to content

Releases: Wouter01/SwiftUI-Macros

v1.2

27 Apr 02:08
Compare
Choose a tag to compare
  • Added @FocusedValues and @FocusedValueKey macros. These are similar to the extisting macros, but for FocusedValues
  • Renamed @EnvironmentStorage to @EnvironmentValues
  • Renamed @EnvironmentValue to @EnvironmentKey to better align with @FocusedValueKey (@FocusedValue could not be used, as that is already a property wrapper in SwiftUI)
  • Added extra checks: @EnvironmentValues and @FocusedValues can now only be used on extensions of their respective types
  • The generated types are now private instead of internal to better align with common SwiftUI code.
  • Update SwiftSyntax package to 510

v1.1

25 Feb 00:13
Compare
Choose a tag to compare
  • The internal struct which conforms to EnvironmentKey now has defaultValue marked as static let instead of static var. This fixes some warnings when strict concurrency is enabled.

v1.0.2

01 Oct 11:55
Compare
Choose a tag to compare

Update swift-syntax dependency to 509.0

v1.0.1

14 Jun 16:24
Compare
Choose a tag to compare

Each EnvironmentKey struct generated is marked as internal to solve an issue when the EnvironmentValues extension is marked as public

v1.0

14 Jun 04:07
544bbda
Compare
Choose a tag to compare
Create LICENSE