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

Add support for `AttachmentFormElement.isEditable`. #711

Closed mhdostal closed 2 months ago

mhdostal commented 2 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 2 months ago

Looks like this is targeting main currently.

mhdostal commented 2 months ago

Looks like this is targeting main currently.

fixed, thanks.

mhdostal commented 2 months ago

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