Toot

Written by Ben Scheirman on 2025-01-21 at 15:10

I think my biggest gripe with SwiftUI is that it's too easy to "hold it wrong"

Fixed an issue that was troubling me for the past couple short working sessions:

presenting an editable form that takes an [@]Binding with the sheet modifier requires some binding projection shenanigans. However the set closure was causing my sheet to dismiss then reappear, then dismiss again.

After commenting out the set closure entirely it works... but why?

1/

=> More informations about this toot | View the thread | More toots from bens@mastodon.xyz

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113866978358770076
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
221.581058 milliseconds
Gemini-to-HTML Time
0.538578 milliseconds

This content has been proxied by September (3851b).