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
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 informations about this toot | View the thread
Yes, pelase fix this... Apple.
=> More informations about this toot | View the thread
Just after writing this toot and coming back to the simulator I was greeted with this:
=> More informations about this toot | View the thread
Long ago when you ran your app in Xcode it was pretty rare for you to see junk logs emitted from core frameworks that you don't control.
Nowadays just a simple SwiftUI control can regularly emit autolayout constraint warnings that we can't even address.
This log shows the first few lines of an app I just started working on. Only 1 line here is relevant to me, the rest is noise I can't hide or address.
=> More informations about this toot | View the thread
Let’s hope that’s enough 😆 (from https://book.iced.rs)
=> More informations about this toot | View the thread
I’m House Makita
https://aus.social/@Kels_316/113779356978027547
=> More informations about this toot | View the thread
Related: Never thought I'd be writing Objective-C in 2025. 😆
https://mastodon.xyz/@bens/113759320219134476
=> More informations about this toot | View the thread
It makes me happy to be able to do something small and have an impact like this. Even for a small number of people.
=> More informations about this toot | View the thread
She wrote:
"It [was] an amazing app for people working in my field. I work in the disability field & my work colleague happened upon your app to help people we support in many different stressful settings, such as medical appointments, de escalating high anxiety moment’s etc.
Your app is more powerful & helpful than you may realise. For all ages & abilities. 💜"
This was really moving, and got me off my butt to dust off the code and resubmit it!
=> More informations about this toot | View the thread
I made this app way back in 2010 for my then 1 year old twins. In 2014 I updated it to use SpriteKit and improve the sounds.
I basically left it alone at that point. A couple years ago Apple decided to remove apps that hadn't been updated recently, so they removed it from sale.
It was a free app, and not really high on my list of things to do. That is until I got an email from someone looking for it…
=> More informations about this toot | View the thread
GiggleTouch is back! This a fun, free app if you have young ones around. https://apps.apple.com/us/app/giggletouch-laughing-sounds/id378753803
=> More informations about this toot | View the thread
Relevant
https://chaos.social/@feliks/113709043661585664
=> More informations about this toot | View the thread
Quiet Anniversary getaway in Wimberly, TX
=> More informations about this toot | View the thread
“Something"af.com just doesn't have the same ring to it
=> More informations about this toot | View the thread
Guess it had to come at some point, but a domain name I own and want to use (“something".af) is now unable to be renewed.
Trying to find a punny domain name for the same product is proving impossible.
=> More informations about this toot | View the thread
None of this makes any sense. I sent a screenshot to Shipt support and they want me to explain the issue. 🙃
=> More informations about this toot | View the thread
Also if you know this answer and want to tell me privately that would be sweet.
I’m just curious is all.
=> More informations about this toot | View the thread
How many people do you think work directly on Xcode?
=> More informations about this toot | View the thread
=> This profile with reblog | Go to bens@mastodon.xyz account This content has been proxied by September (ba2dc).Proxy Information
text/gemini