Swift Actors — Common Problems and Tips
Swift actors are a powerful tool to address data races and make your code thread-safe. However, it is also quite a sophisticated concept that requires deep understanding to write efficient and bug-free code.
One of my favourites. Here I write about Swift and iOS development. It is noticeable that I mainly focus on iOS development right now. I cover topics from small coding problems to detailed descriptions of app architecture.
15 postsSwift actors are a powerful tool to address data races and make your code thread-safe. However, it is also quite a sophisticated concept that requires deep understanding to write efficient and bug-free code.
Unleash the power of Swift concurrency with Actors! Get all the information you need in this comprehensive article
Swift uses ARC to track and deallocate unused objects. Learn about the three types of reference counts and how ARC works — in this detailed post.
Want to create dynamic and responsive user interfaces in SwiftUI? Data binding is the key! In this tutorial, I'll show you how to use @State, @ObservedObject, @EnvironmentObject, and @Binding to keep your user interface in sync with your data
The modular architecture is excellent. But how to implement it effectively with SwiftUI? From its core, SwiftUI is state-driven, and it can be tricky to modularize an app and define exact responsibility borders.
This is the second article in a series on modular app architecture. In this post, I will cover implementation details using Tuist
What will you choose: MVVM, MVC, VIPER? Those all are local and problem-specific architectures. But how to structure your app on a larger scale to make it scalable and well-organized?
Apple introduces new SwiftUI's Layout protocol with the release of iOS 16. It is a powerful tool for constructing custom views with SwiftUI elegance.
Managing navigation in pure SwiftUI is hard and leads to messy solutions. In this post, I will show you how you can manage views effectively
Swift provides DispatchQueue as an excellent layer above raw threads. But sometimes you want to use a low-level thread API
I'm going to show how complex SwiftUI views can be animated efficiently using VectorArithmetic protocol with Accelerate library for fast computations.
Apple released the first version of the async swift algorithms package. It provides tools and algorithms to use with the introduced not that far ago Async Sequence
Type placeholders were recently introduced in Swift 5.6. Get in touch with new useful Swift feature.
Everything you need to know about new Swift asynchronous features. Async await, main actor, task, async get, and possible use cases — all covered.
Here, I collected Swift features that are less known and can be useful when you prepare for interviews or want to deepen your Swift knowledge.