First off, this is my first Swift project, because I'm forced to use Swift, because your SDK doesn't support Objective-C.
I have a project that started out as the boilerplate "New Swift Project" in Xcode. I have a ContentView that contains a MapView. The MapView's .task loads an MMPK file that is downloaded onto the device if it isn't present already. This is all working just fine.
However - if I specify the graphicsOverlays: parameter for the MapView (again, this is basically copied code verbatim from your tutorials - with the Model class, etc.), I get the following runtime crash:
/Users/jenkins/workspace/200.2.0/daily_swift_SDK_release/swift/ArcGIS/Sources/ArcGIS/Common/CoreMutableArray.swift:47: Fatal error: Object is already in use and may not be reused.
I have tried to create the GraphicsOverlay in every which way - with your "pierLocation" point, with no points, with GPS coordinates that match the MMPK file I've loaded. Nothing will get me past that error. There just doesn't seem to be anything else I can do, there's barely any code in this project and the parts that matter are straight out of the tutorial. Any ideas? I'm just trying to put a dot on a map at my current coordinate.