UIKit finally gains natively a simple way to observe changes thanks to #SwiftUl this is back deployed to iOS 18 too!
#WWDC25
1994, iOS Engineer
And it is pretty smart too: it groups "name" and "surname" and separates the other with -
@fabio astemio 😁
@goodbinary Nice! I'd convert that DispatchQueue to the async/await version
@its_john_davis double check your modifiers: maybe there’s one in the wrong place
#SwiftUI has its own non written but legit rules and it is ok, but hey, I'd like some warnings or something like that instead of low fps on an animation! This is what I had when I was trying to change the offset on the Menu's label instead of directly on Menu element. Notice how the fps drop during the 3 dots view presentation #iosdev
The only thing that I didn’t like about the new MacBook Pros is the fact that they recycled the m3 pro default wallpaper #apple #macBookPro
@dlx wow, that’s a big improvement! I did not know about the ‘InsettableShape’ protocol. Thank you for your time and dedication, I hope to have more tips from you in the future!
@dlx In some cases I prefer the callback approach, it is cleaner in my opinion. Yes, I have tried with the strokedBorder but I couldn't achieve the same smoothness. Probably I was missing something. Is mask more expensive?
I have written something about #swiftui on Medium. I really hate when I start to read an article and it does not take me directly to the code. This inspired me! #iosdev https://medium.com/@edoardod/how-to-build-a-bordered-selection-style-view-in-swiftui-735047de198c
It’s crazy that the fileImporter modifier is so buggy on iOS 15: it does not work if applied on a view within a List and if dragged to dismiss, it won’t be presented the next time! #swiftui
@malhal ok, but the view would be recomputed even if it was isolated in another struct if it depends from a State property, or not?
@malhal what about the 6? Why computer var views should be avoided in your opinion? I think that if they are small, they are fine
@andhash39 In this particular case, I'd extract the inner HStack into a separate View and binding 'showViewA' and 'showViewC'
@marcel maybe I didn’t get it, but why you should resize your ScrollView when presenting the modal?