Repository navigation
1.1.0
Breaking Change
The macro signature has changed to fix a "Circular reference expanding freestanding macro" compiler error.
Before
#KMPStateSupport(
(\MyState.name, String.self),
(\MyState.count, Int.self)
)After
#KMPStateSupport(MyState.self,
("name", String.self),
("count", Int.self)
)Key paths are replaced with string literals for property names, and the root type is passed explicitly as a metatype. This avoids the circular dependency where the compiler needed to resolve key paths (requiring the type's member list) before expanding the macro that contributes to that member list.