Query(transaction:)
Fetches all instances of the attached model type, using the specified transaction to animate any subsequent changes.
Declaration
@attached(accessor) @attached(peer, names: prefixed(`_`)) macro Query(transaction: Transaction)Parameters
- transaction:
The transaction to use when updates to the fetched models trigger user interface changes.