StateObject | Apple Developer Documentation

A property wrapper type that instantiates an observable object.