QueryNext
and so on. These property wrappers use @StateObject
under the hood, which means they are better at keeping track of their underlying state.See the API docs for each property wrapper linked above for how to use the new versions, as the API for them has changed, especially for @Query. The Getting Started guide has also been updated to use the new APIs.
RecordProxy
is now a class-constrained protocol, so methods like setLinkedRecord
are no longer mutating
and can be used even when the record proxy is stored somewhere read-only like a let
variable. This may cause warnings in your code if you storing record proxies in var
s and not reassigning them, which can be fixed by changing it to a let
.@StateObject
available in these older OS versions, which is why this support is being removed.The release notes for version 0.3.0 have some more information about why this changed.