I do have an Identity type that's somewhat like EmptyView in SwiftUI.
Maybe the question is misguided and the actual problem is not that I should check whether the block is a no-op, but instead not perform effects in evaluation of blocks. 🤔
Adding a new SwiftData Model to my app makes it crash hard without any noticeable error message when trying to create an object with it. It's so frustrating. I don't know why.
Are there any users of Adwaita-Swift by @david_swift? I'd like to chat a bit about the what the developer experience is like using those bindings. Feel free to DM me on Matrix!
Folks, have you had any success in merging the new Strings catalog in Xcode 15?
A nice contributor translated Cork into Spanish. Unfortunately, they didn’t use the correct branch. The main branch had a few changes to the Strings catalog.
I tested the advice that marking classes in #swift as final improves build times. I generated 2 swift files that each have 1000 (trivial) classes: one with each marked as final, the other without. I built each file 10 times, recording the build time for that file.
Marking classes as final does improve build times. By about 7%. The difference is just outside 1 standard deviation, so I think it’s statistically significant. But I’m not a trained statistician.