I'm having difficulties loading an offline map and can't find anything in the docs explaining how.
I'm able to successfully save an offline map with this message
21:01:48.591 DEBUG GISMapDetailViewController.saveMapForOffline():224 - Job message: 54: Job succeeded.
21:01:48.592 DEBUG GISMapDetailViewController.saveMapForOffline():229 - Finished downloading!: <AGSGenerateOfflineMapResult: 0x2801cbbc0>
However, if I try to load the map from File Manager I get this error.
21:02:51.114 ERROR GISMapDetailViewController.togglePrint():322 - Error loading offline map: The file “offlineString” couldn’t be opened because you don’t have permission to view it.
I've tried multiple simulators, cleaned, deleted derived data, and tried on two different real devices.
How can I load up a map after downloading it? One of the docs I'm looking at is here. https://developers.arcgis.com/ios/swift/sample-code/generate-offline-map/
But even in the instructions it says "When complete, the offline map will replace the online map in the map view."
I need to be able to go do a different area in the map, view my offline maps, then show them after downloading them, not just replace the current screen.