Part 2 of my series about building Wallaroo in #SwiftUI is up! This time I talk about how I implemented parallax and blurs: https://blog.iconfactory.com/2022/09/wallaroo-and-swiftui-2-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