@State only works with value types, but it does have a companion specifically for reference types: @StateObject.
This is a companion discussion topic for the original entry at https://www.kodeco.com/28684524-swiftui-fundamentals/lessons/14
@State only works with value types, but it does have a companion specifically for reference types: @StateObject.