Esri / arcgis-runtime-toolkit-ios

Toolkit components that will simplify your iOS app development with ArcGIS Runtime
Apache License 2.0
51 stars 21 forks source link

PopupController Example: initial size of added attachment images in incorrect #156

Closed mhdostal closed 2 years ago

mhdostal commented 3 years ago

In the PopupController Example, adding an image attachment (via "Choose From Library") to either a new or existing feature results in the size displaying as "-1.0 bytes". Saving the feature and reselecting it causes the attachment sizes to display correctly.

Adding an attachment directly from a new image (via "Take Photo or Video"), displays the correct size.

Steps to reproduce:

After adding attachments (note that "Photo3.jpg" was a new image from the camera and displays the correct size):

image

After saving the feature, going back to the map, and re-selecting the same feature results in correct sizes:

image

The initial sizes should appear correctly immediately after adding the attachment.

Built using Xcode 12.5 and v100.12 of the ArcGIS Runtime SDK. Run on an iPhone 8 with iOS v14.7.1 Also occurs in the Simulator (iPad Pro 9.7" iOS 14.5)

rolson commented 3 years ago

This issue is more than likely in the runtime I would've thought.

mhdostal commented 2 years ago

Fixed in the iOS SDK.