Toots for bens@mastodon.xyz account

Shared by Ben Scheirman on 2025-02-02 at 03:29 (original by Kevin Beaumont)

=> More informations about this toot | View the thread

Written by Ben Scheirman on 2025-02-01 at 14:19

Looks like I’ll get my wwdc wish from (checks notes) 2022? Where other editors will be able to use the same lsp / index as xcode. https://fosstodon.org/@joannis/113929017453488209

=> More informations about this toot | View the thread

Shared by Ben Scheirman on 2025-02-01 at 14:13 (original by Ben Cohen)

=> More informations about this toot | View the thread

Shared by Ben Scheirman on 2025-01-31 at 12:27 (original by Panic)

=> More informations about this toot | View the thread

Shared by Ben Scheirman on 2025-01-30 at 17:42 (original by Jeff Watkins)

=> More informations about this toot | View the thread

Shared by Ben Scheirman on 2025-01-30 at 17:42 (original by Paul Hudson)

=> More informations about this toot | View the thread

Shared by Ben Scheirman on 2025-01-30 at 01:09 (original by Leo Dion)

=> More informations about this toot | View the thread

Shared by Ben Scheirman on 2025-01-28 at 01:01 (original by James White)

=> More informations about this toot | View the thread

Shared by Ben Scheirman on 2025-01-24 at 16:06 (original by NSScreencast)

=> More informations about this toot | View the thread

Shared by Ben Scheirman on 2025-01-24 at 13:55 (original by Seva 🇺🇦)

=> More informations about this toot | View the thread

Shared by Ben Scheirman on 2025-01-23 at 23:56 (original by Huw R)

=> More informations about this toot | View the thread

Shared by Ben Scheirman on 2025-01-22 at 18:13 (original by Neodog with Glasses Plushie :neodog_glasses: )

=> More informations about this toot | View the thread

Shared by Ben Scheirman on 2025-01-21 at 17:48 (original by Lauren Weinstein)

=> More informations about this toot | View the thread

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

It's because I'm using SwiftData and the Item was a reference type. Mutating the single instance will update the source of the binding.

But it took me so long to realize I should have been using [@]Bindable instead of [@]Binding.

Doing so made the code way cleaner, I was able to remove my sheet(unwrapping:) modifier, and it all works.

But there was no indication I was doing something wrong. Just strange behavior that was hard to understand, and harder to explain.

2/2

=> More informations about this toot | View the thread

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

Shared by Ben Scheirman on 2025-01-21 at 04:03 (original by Mario Guzmán)

=> More informations about this toot | View the thread

Shared by Ben Scheirman on 2025-01-20 at 21:03 (original by Joseph Humfrey)

=> More informations about this toot | View the thread

Written by Ben Scheirman on 2025-01-19 at 23:31

=> More informations about this toot | View the thread

Shared by Ben Scheirman on 2025-01-19 at 04:46 (original by tj usiyan)

=> More informations about this toot | View the thread

Shared by Ben Scheirman on 2025-01-17 at 15:34 (original by Dwight Silverman)

=> More informations about this toot | View the thread

=> This profile without reblog | Go to bens@mastodon.xyz account

Proxy Information
Original URL
gemini://mastogem.picasoft.net/profile/111542/reblog
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
418.127812 milliseconds
Gemini-to-HTML Time
2.86083 milliseconds

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