I wrote up a series of blog posts about our experiences while building Wallaroo https://wallaroo.app in #SwiftUI. The first article is up today with more coming over the course of the week. Let my pain be your gain! https://blog.iconfactory.com/2022/09/wallaroo-and-swiftui-1-of-5/
I just published part 3 of my Wallaroo and #SwiftUI series! Today I talk about a couple of performance issues that came up and why I wrote my own AsyncImage. https://blog.iconfactory.com/2022/09/wallaroo-and-swiftui-3-of-5/
@bigzaphod Way, way back in the iOS 5 days I had to return a placeholder image on first call even if there was a cached image. Just pulling the (properly scaled) image from the cache slowed things down.
I'm glad things have got this much faster.
@tewha oh yeah I remember those days. It was part of why I went down the road of making a complex caching system before I realized I didn't even need it. I assumed I still did - but nope! In this case, being able to use async to decode/fetch the images is a huge win because it can happen on another thread (likely another whole core) while layout is still happening, too!
@bigzaphod sometimes the hardest part of being a professional coder is knowing what code shouldn't be written. And one of the most pride-injuring tasks can be figuring out which code should be deleted.
but it feels so good after!
@bigzaphod I'm sure you've read this Bill Atkinson tale (though I'll link just in case) but I try to filter through it.
@bigzaphod yeah. I try to stay positive. “Look how many things I learned overnight!” But it doesn’t work.
The original server operated by the Mastodon gGmbH non-profit