SwiftUI Query Macro Must Declare Type
Error: Property missing a type annotation
1
@Query(sort: \Monster.name) private var monsters = [Monster]()
Correct:
1
@Query(sort: \Monster.name) private var monsters: [Monster] = []
This post is licensed under CC BY 4.0 by the author.