Esri / arcgis-maps-sdk-swift-toolkit

Mapping components that will simplify your Swift app development with the ArcGIS Maps SDK for Swift.
https://developers.arcgis.com/swift
Apache License 2.0
25 stars 7 forks source link

Offline: Remove detached task from model and call `load()` in the view #747

Closed yo1995 closed 1 month ago

yo1995 commented 1 month ago

Instead of calling Task.detached { await self.load() } in the view model's initializer, call it in the task modifier so it is easier to unit test the method.