Select to view content in your preferred language

ArcGIS Runtime Error Occurred In SwiftUI iOS

530
1
09-26-2022 09:29 PM
AkshayPatil
New Contributor

ArcGIS Runtime Error Occurred. Set a breakpoint on C++ exceptions to see the original callstack and context for this error:  Error Domain=com.esri.arcgis.runtime.error Code=24 "Object is already owned." UserInfo={NSLocalizedFailureReason=Already owned., NSLocalizedDescription=Object is already owned., Additional Message=Already owned.}

I am getting this error while i am changing Segment controller in swiftUI in same UI view.
Could you please help me how to resolve that.

also if i plot more than 50 graphic point, App taking to mush load to perform the action, is there any way to fix this?

Tags (2)
0 Kudos
1 Reply
DiveshGoyal
Esri Regular Contributor

The error "Object is already owned" suggests that you're incorrectly assigning the same object instance to the different parent instances. For example, the same map to multiple mapviews, or the same basemap to multiple maps, or the same layer to multiple basemaps or maps. 

50 graphics shouldn't cause slowdown. You should be able to work with thousands of graphics easily 
The view lifecycle in your app may be unnecessarily running code over and over again. 

If you can share a simple repro app that shows these problems we can try to help more