What can cause addAttachment to never call its completion block?
func <SPAN class="token function">addImage</SPAN><SPAN class="punctuation token">(</SPAN>_ image<SPAN class="operator token">:</SPAN> UIImage<SPAN class="punctuation token">,</SPAN> toFeature agsArcGISFeature<SPAN class="operator token">:</SPAN> AGSArcGISFeature<SPAN class="punctuation token">,</SPAN> completion<SPAN class="operator token">:</SPAN> @escaping <SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">(</SPAN>Error<SPAN class="operator token">?</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN> Void<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
agsArcGISFeature<SPAN class="punctuation token">.</SPAN><SPAN class="token function">load</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN> error in
<SPAN class="keyword token">if</SPAN> let error <SPAN class="operator token">=</SPAN> error <SPAN class="punctuation token">{</SPAN>
<SPAN class="token function">completion</SPAN><SPAN class="punctuation token">(</SPAN>error<SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">return</SPAN>
<SPAN class="punctuation token">}</SPAN>
guard let imageData <SPAN class="operator token">=</SPAN> image<SPAN class="punctuation token">.</SPAN><SPAN class="token function">jpegData</SPAN><SPAN class="punctuation token">(</SPAN>compressionQuality<SPAN class="operator token">:</SPAN> <SPAN class="number token">0.85</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">else</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="token function">completion</SPAN><SPAN class="punctuation token">(</SPAN>nil<SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">return</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="token function">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"Calling addAttachment()"</SPAN><SPAN class="punctuation token">)</SPAN>
agsArcGISFeature<SPAN class="punctuation token">.</SPAN><SPAN class="token function">addAttachment</SPAN><SPAN class="punctuation token">(</SPAN>withName<SPAN class="operator token">:</SPAN> <SPAN class="string token">"image.jpg"</SPAN><SPAN class="punctuation token">,</SPAN> contentType<SPAN class="operator token">:</SPAN> <SPAN class="string token">"jpg"</SPAN><SPAN class="punctuation token">,</SPAN> data<SPAN class="operator token">:</SPAN> imageData<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN> agsAttachment<SPAN class="punctuation token">,</SPAN> error in
<SPAN class="keyword token">if</SPAN> let error <SPAN class="operator token">=</SPAN> error <SPAN class="punctuation token">{</SPAN>
<SPAN class="token function">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"addAttachment() completed with error"</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="token function">completion</SPAN><SPAN class="punctuation token">(</SPAN>error<SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">}</SPAN> <SPAN class="keyword token">else</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="token function">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"addAttachment() completed successfully"</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="token function">completion</SPAN><SPAN class="punctuation token">(</SPAN>nil<SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>In the above code, neither of the print() statements (lines 16 or 19) ever execute. The feature is a loaded feature from a feature service in ArcGIS Online. I feel like I am missing something simple.