<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Best Practice for Saving ViewPoint in Swift Maps SDK Questions</title>
    <link>https://community.esri.com/t5/swift-maps-sdk-questions/best-practice-for-saving-viewpoint/m-p/1676153#M655</link>
    <description>&lt;P&gt;2 cents from a few folks collective ideas, not an official best practice:&lt;/P&gt;&lt;P&gt;- Viewpoint is Codable, so serialize it and save it somewhere you like (for example, AppStorage, or UserDefaults.standard).&lt;/P&gt;&lt;P&gt;- If the web map has an &lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/geomodel/initialviewpoint" target="_blank"&gt;initial viewpoint&lt;/A&gt;, use it to initialize the viewpoint you want to save.&lt;/P&gt;&lt;P&gt;- When the map view draw status becomes &lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/drawstatus/completed" target="_blank"&gt;complete&lt;/A&gt; for the first time, save the viewpoint. The draw status is reported by&amp;nbsp;&lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/geoview/ondrawstatuschanged(perform:)" target="_blank" rel="noopener"&gt;onDrawStatusChanged(perform:)&lt;/A&gt;&amp;nbsp;modifier on the map view.&lt;/P&gt;&lt;P&gt;- When the map view stops navigating, save the viewpoint. The navigation status is reported by&amp;nbsp;&lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/mapview/onnavigatingchanged(perform:)" target="_blank" rel="noopener"&gt;onNavigatingChanged(perform:)&lt;/A&gt;&amp;nbsp;modifier&amp;nbsp;on the map view. Specifically, when the old value is true (the map view was navigating) and the new value is false (the map view stops navigating).&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/mapview/onviewpointchanged(kind:perform:)" target="_blank" rel="noopener"&gt;onViewpointChanged(kind:perform:)&lt;/A&gt; modifier to get the current viewpoint.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jan 2026 18:13:14 GMT</pubDate>
    <dc:creator>Ting</dc:creator>
    <dc:date>2026-01-06T18:13:14Z</dc:date>
    <item>
      <title>Best Practice for Saving ViewPoint</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/best-practice-for-saving-viewpoint/m-p/1676010#M650</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am looking for techniques that anyone has used for saving the last viewpoint of a map so it can be recalled later when reloading the map. In a particular, when do you save the viewpoint, what observable are you watching, etc.&amp;nbsp; Just looking to see if there is a better/best way to do this. Any feedback would be much appreciated. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 23:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/best-practice-for-saving-viewpoint/m-p/1676010#M650</guid>
      <dc:creator>RTC</dc:creator>
      <dc:date>2026-01-05T23:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practice for Saving ViewPoint</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/best-practice-for-saving-viewpoint/m-p/1676153#M655</link>
      <description>&lt;P&gt;2 cents from a few folks collective ideas, not an official best practice:&lt;/P&gt;&lt;P&gt;- Viewpoint is Codable, so serialize it and save it somewhere you like (for example, AppStorage, or UserDefaults.standard).&lt;/P&gt;&lt;P&gt;- If the web map has an &lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/geomodel/initialviewpoint" target="_blank"&gt;initial viewpoint&lt;/A&gt;, use it to initialize the viewpoint you want to save.&lt;/P&gt;&lt;P&gt;- When the map view draw status becomes &lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/drawstatus/completed" target="_blank"&gt;complete&lt;/A&gt; for the first time, save the viewpoint. The draw status is reported by&amp;nbsp;&lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/geoview/ondrawstatuschanged(perform:)" target="_blank" rel="noopener"&gt;onDrawStatusChanged(perform:)&lt;/A&gt;&amp;nbsp;modifier on the map view.&lt;/P&gt;&lt;P&gt;- When the map view stops navigating, save the viewpoint. The navigation status is reported by&amp;nbsp;&lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/mapview/onnavigatingchanged(perform:)" target="_blank" rel="noopener"&gt;onNavigatingChanged(perform:)&lt;/A&gt;&amp;nbsp;modifier&amp;nbsp;on the map view. Specifically, when the old value is true (the map view was navigating) and the new value is false (the map view stops navigating).&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/mapview/onviewpointchanged(kind:perform:)" target="_blank" rel="noopener"&gt;onViewpointChanged(kind:perform:)&lt;/A&gt; modifier to get the current viewpoint.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 18:13:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/best-practice-for-saving-viewpoint/m-p/1676153#M655</guid>
      <dc:creator>Ting</dc:creator>
      <dc:date>2026-01-06T18:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practice for Saving ViewPoint</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/best-practice-for-saving-viewpoint/m-p/1676155#M656</link>
      <description>&lt;P&gt;Thanks Ting, That it very similar to what our app does now. Good to know!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 18:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/best-practice-for-saving-viewpoint/m-p/1676155#M656</guid>
      <dc:creator>RTC</dc:creator>
      <dc:date>2026-01-06T18:18:40Z</dc:date>
    </item>
  </channel>
</rss>

