When I add the following line to my view, I get the error from compiler. Project won't compile now. I got this line of code from the 'Search with geocode' sample.
@StateObject private var inspectedOverlay = GraphicsOverlay()
Generic struct 'StateObject' requires that 'GraphicsOverlay' conform to 'ObservableObject'