QueryResult
An object that returns the results of an entity query.
Declaration
struct QueryResult<Element>Overview
You can’t create query result objects. Instead, call performQuery(_:), which returns a QueryResult containing the entities that meet your specified query criteria.
// Ask the scene to perform the query and iterate over the returned entities.
scene.performQuery(query).forEach { entity in
print("Returned entity: \(entity)")
}