arcgis-maps-sdk-swift-toolkit
arcgis-maps-sdk-swift-toolkit copied to clipboard
Offline: consider renaming `onlyOfflineModelsAreAvailable`
trafficstars
Description
https://github.com/Esri/arcgis-maps-sdk-swift-toolkit/blob/472d484b0190ce12aa90f76fef800e73873cb5e8/Sources/ArcGISToolkit/Components/Offline/Preplanned/PreplannedMapModel.swift#L386
This Boolean is only set here to true when a URLError is thrown, which indicates the Internet connection is bad. However, its name is a bit misleading, as it doesn't indicate whether the [PreplannedMapModel] array is empty or not.
Consider renaming it to better convey the idea that "when the device is disconnected from the Internet, you can only work with the 'offline' preplanned map areas that are already on device".