<?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: How do I serialize &amp; de-serialize a AGSPolyline object? in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-serialize-de-serialize-a-agspolyline/m-p/427307#M3646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got persistence!&lt;/P&gt;&lt;P&gt;I was able to serialize and de-serialize an AGSPolyLine (free sketch):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN style="color: #bb2ca2;"&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; lineSymbol = &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSSimpleLineSymbol&lt;/SPAN&gt;&lt;SPAN&gt;(style: .&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;solid&lt;/SPAN&gt;&lt;SPAN&gt;, color: &lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;UIColor&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;red&lt;/SPAN&gt;&lt;SPAN&gt;, width: &lt;/SPAN&gt;&lt;SPAN style="color: #272ad8;"&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; myPolyLine = &lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;UserDefaults&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;standard&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;(forKey: &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;SketchItem&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;Doodle&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;desc&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; polyline2 = (&lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;try&lt;/SPAN&gt;&lt;SPAN&gt;? &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSPolygon&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;fromJSON&lt;/SPAN&gt;&lt;SPAN&gt;(myPolyLine!)) &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;as&lt;/SPAN&gt;&lt;SPAN&gt;! &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSPolyline&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;graphicsOverlay&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSGraphic&lt;/SPAN&gt;&lt;SPAN&gt;(geometry: polyline2, symbol: lineSymbol, attributes: &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;nil&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #4f8187; font-size: 11px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;mapView&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;graphicsOverlays&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;add&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;graphicsOverlay&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll cleanup the code.... but it works.&lt;/P&gt;&lt;P&gt;Again, Thanks for your speedy answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Mar 2017 22:08:56 GMT</pubDate>
    <dc:creator>FrederickLee1</dc:creator>
    <dc:date>2017-03-10T22:08:56Z</dc:date>
    <item>
      <title>How do I serialize &amp; de-serialize a AGSPolyline object?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-serialize-de-serialize-a-agspolyline/m-p/427303#M3642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt; iOS/Swift 3&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Goal:&lt;/STRONG&gt; to save a&amp;nbsp;&lt;STRONG&gt;AGSPolyline&lt;/STRONG&gt; object within a dictionary for &lt;STRONG&gt;UserDefaults&lt;/STRONG&gt;; and retrieve the object back as a&amp;nbsp;&lt;STRONG&gt;AGSPolyline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Modus Operandi:&lt;/STRONG&gt; storing the&amp;nbsp;AGSPolyline within a dictionary for persistent UserDefault.&lt;/P&gt;&lt;P&gt;The following code is my first attempt; it crashes due to the AGSPolyline object not being serialized.&lt;/P&gt;&lt;P&gt;I thought I cut use the NSKeyedArchiver, being that&amp;nbsp;AGSPolyline is an NSObject. &amp;nbsp; But it fails with a run-time crash:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN style="color: #bb2ca2;"&gt;func&lt;/SPAN&gt;&lt;SPAN&gt; storeSketch(doodle:&lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;AGSPolyline&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; myDict = [String:AnyObject]()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; key = SketchItem.Polyline.desc()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; json = doodle.encodeToJSON()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; myData =&amp;nbsp; NSKeyedArchiver.archivedData(withRootObject: doodle)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; myDict[key] = myData &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;AnyObject&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; key = SketchItem.Doodle.desc()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UserDefaults.standard.set(myDict, forKey: key)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;return&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I need to JSON-SERIALIZE (and JSON-DE-SERIALIZE) my&amp;nbsp;AGSPolyline object (a Geometry object) so I can insert it into my dictionary for UserDefaults storage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do that?&lt;/P&gt;&lt;P&gt;What's the syntax?&lt;/P&gt;&lt;P&gt;... or can I transform a AGSPolyline&amp;nbsp;object to a common NSObject (NSData??)... and go from there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 21:23:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-serialize-de-serialize-a-agspolyline/m-p/427303#M3642</guid>
      <dc:creator>FrederickLee1</dc:creator>
      <dc:date>2017-03-10T21:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I serialize &amp; de-serialize a AGSPolyline object?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-serialize-de-serialize-a-agspolyline/m-p/427304#M3643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your question! &amp;nbsp;You are correct, you will need to serialize and deserialize your AGSPolyline object so you can use it in your dictionary. &amp;nbsp;The AGSPolyline class (and all geometry classes), inherits from the AGSJSONSerializable protocol. &amp;nbsp;You can use the `toJSON` and `fromJSON` methods from that protocol&amp;nbsp;to do what you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #008f00; font-size: 14px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;// convert a Polyline to a JSON representation&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; polylineJSON = (&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;try&lt;/SPAN&gt;&lt;SPAN&gt;? polyline.toJSON()) &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN&gt;? &lt;/SPAN&gt;&lt;SPAN style="color: #3495af;"&gt;NSDictionary&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #008f00; font-size: 14px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// create a new Polyline from JSON&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; polyline2 = (&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;try&lt;/SPAN&gt;&lt;SPAN&gt;? AGSPolygon.fromJSON(polylineJSON!)) &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN&gt;! &lt;/SPAN&gt;&lt;SPAN style="color: #3495af;"&gt;AGSPolyline&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 21:43:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-serialize-de-serialize-a-agspolyline/m-p/427304#M3643</guid>
      <dc:creator>MarkDostal</dc:creator>
      <dc:date>2017-03-10T21:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I serialize &amp; de-serialize a AGSPolyline object?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-serialize-de-serialize-a-agspolyline/m-p/427305#M3644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the speedy reply!&lt;/P&gt;&lt;P&gt;I was thinking...&lt;/P&gt;&lt;P&gt;Perhaps converting the AGSPolyLine to a Swift Array: &amp;nbsp;doodle.parts.array() as? Array&lt;/P&gt;&lt;P&gt;...where 'doodle' is a free-form sketch of type AGSPolyLine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I could transform the Array into a NSData item for serialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course I would have to reverse all this back to AGSPolyLine.&lt;/P&gt;&lt;P&gt;... is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime, I'll go the JSON route per your example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 21:48:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-serialize-de-serialize-a-agspolyline/m-p/427305#M3644</guid>
      <dc:creator>FrederickLee1</dc:creator>
      <dc:date>2017-03-10T21:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I serialize &amp; de-serialize a AGSPolyline object?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-serialize-de-serialize-a-agspolyline/m-p/427306#M3645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Converting to a Swift array is possible, but you'd have to take into account multiple parts with multiple points per part, so you couldn't just do "doodle.parts.array() as? Array". &amp;nbsp;The JSON route is the way to go and is fairly straightforward. &amp;nbsp;Let us know if you have problems or can't get it to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 21:54:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-serialize-de-serialize-a-agspolyline/m-p/427306#M3645</guid>
      <dc:creator>MarkDostal</dc:creator>
      <dc:date>2017-03-10T21:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I serialize &amp; de-serialize a AGSPolyline object?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-serialize-de-serialize-a-agspolyline/m-p/427307#M3646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got persistence!&lt;/P&gt;&lt;P&gt;I was able to serialize and de-serialize an AGSPolyLine (free sketch):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN style="color: #bb2ca2;"&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; lineSymbol = &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSSimpleLineSymbol&lt;/SPAN&gt;&lt;SPAN&gt;(style: .&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;solid&lt;/SPAN&gt;&lt;SPAN&gt;, color: &lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;UIColor&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;red&lt;/SPAN&gt;&lt;SPAN&gt;, width: &lt;/SPAN&gt;&lt;SPAN style="color: #272ad8;"&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; myPolyLine = &lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;UserDefaults&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;standard&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;(forKey: &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;SketchItem&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;Doodle&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;desc&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; polyline2 = (&lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;try&lt;/SPAN&gt;&lt;SPAN&gt;? &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSPolygon&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;fromJSON&lt;/SPAN&gt;&lt;SPAN&gt;(myPolyLine!)) &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;as&lt;/SPAN&gt;&lt;SPAN&gt;! &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSPolyline&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;graphicsOverlay&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSGraphic&lt;/SPAN&gt;&lt;SPAN&gt;(geometry: polyline2, symbol: lineSymbol, attributes: &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;nil&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #4f8187; font-size: 11px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;mapView&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;graphicsOverlays&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;add&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;graphicsOverlay&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll cleanup the code.... but it works.&lt;/P&gt;&lt;P&gt;Again, Thanks for your speedy answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 22:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-serialize-de-serialize-a-agspolyline/m-p/427307#M3646</guid>
      <dc:creator>FrederickLee1</dc:creator>
      <dc:date>2017-03-10T22:08:56Z</dc:date>
    </item>
  </channel>
</rss>

