Hey iOS developer! 👋
In this issue let’s explore collection of articles about the Swift Concurrency.
Concurrency in Swift: A Detailed Guide
There’s no doubt that Swift Concurrency allows developers to write efficient and readable asynchronous code. However, the benefits of adopting it in existing iOS codebases that use Grand Central Dispatch (GCD) aren’t always immediately clear.
In this detailed guide, Gaurav Harkhani not only explains the key components of Swift Concurrency, but also provides comparison with the GCD to help us understand why to migrate when possible.
Read on Medium
Swift Concurrency by Example
Swift Concurrency isn’t just async/await
- it also is Actors
, Tasks
and much more. It’s a broad topic that can’t be covered in just few articles.
If you’re ready to dive deeper, I highly recommend this best-in-class free course by Paul Hudson.
Read on Hacking with Swift
Incremental Adoption
Imagine you’re convinced and ready to migrate - but where to start, and how should you do it?
Check out this official documentation that explains how to gradually adopt Swift 6. Swift offers various APIs to ease transition to concurrency, such as wrapping callback-based functions using continuations
or maintaining backward compatibility with @preconcurrency
.
Read on Swift.org
Advanced Swift Concurrency: Understanding Tasks (Paid)
I usually feature free articles in my newsletter, but this one is an exception - and for good reason! Jacob Bartlett’s deep dive into Task
is too good to be missed.
Read on Jacob’s Tech Tavern
Swift 6.2: A first look at how it’s changing Concurrency
Although Swift 6.2. hasn’t been released yet, Antoine van der Lee takes an early look at the potential changes and how they might impact Swift Concurrency.
Read on Antoine van der Lee blog
If you found this Curated iOS issue useful, I’d be happy if you:
Hit the Like button.
Subscribe, if you haven’t already!
Connect with me on LinkedIn.
Until next time!
Artjoms
The book and video course (with sample projects) by Donny Wals are pretty good too. (He also has some blog posts around it)