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
29 stars 9 forks source link

Add support for `AttachmentFormElement.isEditable`. #711

Closed mhdostal closed 7 months ago

mhdostal commented 7 months ago

This adds support for AttachmentFormElement.isEditable, which is a @Streamed property that can change based on an expression evaluation. This PR:

The isEditable bit can be tested by putting the following code at the top of the Group in AttachmentFeatureElementView:

        Toggle(isOn: $isEditable) {}
            .toggleStyle(.switch)
dfeinzimer commented 7 months ago

Looks like this is targeting main currently.

mhdostal commented 7 months ago

Looks like this is targeting main currently.

fixed, thanks.

mhdostal commented 7 months ago

Done. Please re-review. I fixed an opposite if check when reversing the attachment array. Booleans are hard. ;-)