New iPhones, some Swift regrets and assorted cool stuff…
Welcome to my twelfth weekly newsletter. It is Thursday September 16, 2021.
These are the curated links from the last regular episode.
- Building Dynamic Lists in SwiftUI - The Ultimate Guide to SwiftUI List Views - Part 2
A great continuation of an article series on List views in SwiftUI by Peter Friese. If you are looking for a good overview on how to get started with Lists in SwiftUI, have a look at this one.
- Using Swift’s async/await to build an image loader – Donny Wals
Do you want to know how an image loader could be implemented with caching? Then look at this article by Donny. It is another one of his typical write-ups. Read this and you will learn how async/await can be used to implement an image loader including caching and thread safety.
- View masking in SwiftUI | FIVE STARS
Last week Federico wrote about View Clipping in SwiftUI, this week he is back building on top of his previous article by showing how you can do View masking in SwiftUI, it is a bit like clipping, but much more flexible and advanced.
- PassthroughSubject vs. CurrentValueSubject explained
A PassthroughSubject is like a doorbell push button:
- When someone rings the bell, you’re only notified when you’re at home
A CurrentValueSubject is like a light switch:
- When a light is turned on while you’re away, you’ll still notice it was turned on when you get back home.
Thanks Antoine, great analogy. Read the rest of his article to truly understand the difference.
- Preventing Data Races Using Actors in Swift - Swift Senpai
Lee has a great article on Actors in Swift. He explains their usefulness by showing how Actors can help prevent data races in your code. A type of bug that can be hard to detect and reason about.
- Swift Regrets // -dealloc
If you want to learn a bit about what goes into developing our favourite programming language, read through all the links mentioned in this little article by Jordan. Swift is not perfect, and here is an honest review of one of the people involved with creating it.
µFrameworks everywhere
On the theme of staying simple and nimble, I am preparing the next push at my day job moving the codebase into a more feature driven pattern. We already did the hard part of adopting Tuist to generate our project files. If there is anything you should do this week, it is to check out this tool. Sarun has some articles providing a good quick intro on what Tuist is about.
We are at the point where will perform our second round of splitting up our app target. It is big, it is hairy and definatly has some warts. But we are taking the elephant eating approach, we eat it by taking one bite at a time. Once we split our app target up into small enough frameworks, then the payoff will will come. Then we will be able to apply a feature based pluggable architecture to our product.
Probably I will write some more on this in the coming weeks. I will also am planning on doing a Dutch language presentation (beware, page is in Dutch) on why we are making this step with the app's codebase. I promise to work on an English version of this talk as well. I submitted it to a first CFP as well.
Conferences
SwiftLeeds in Leeds with a great line-up. In person conference. Fun detail, most of the speaker line-up have been a guest on my podcast. How amazing is that. More info on https://swiftleeds.co.uk/
If a remote conference is more your thing, then have a look at NSSpain 2021: Remote Edition. They actually have an open CFP, so consider submitting a proposal. Looking forward to see their line-up, there are bound to be some great people eager to do a talk at NSSpain. What is interesting about NSSpain is the fact that is is a continuous event of 36 hours with event hosts from across the globe. Obviously you can't sit down for 36 hours. That's why they give you quick access to all the presentations so you can enjoy the content on you own schedule allowing you to focus on interacting with your peers also participating in the event. More info on https://2021.nsspain.com/
So it seems events are starting to happen again in Europe. If you are still in a part of the world dealing with severe restrictions I wish you well and hope things will get better soon.
|