Composition vs. Inheritance: code architecture solutions explained in Swift
Composition and inheritance are two different code architecture solutions that have their own usage and benefits that you should know.
The Swift Concurrency Playbook
A FREE 5-day email course revealing the 5 biggest mistakes iOS developers make with async/await that lead to App Store rejections And migration projects taking months instead of days (even if you've been writing Swift for years).
5 lessons | 100% free | For iOS developers
Learn more and get better in Swift using this list of Swift blog posts, tutorials, tips, and tricks.
Composition and inheritance are two different code architecture solutions that have their own usage and benefits that you should know.
The nonisolated and isolated keywords allow you to control Actor isolation and provide access to immutable state within actors.
EXC_BAD_ACCESS crashes are annoying but solvable using the right tools. Learn how to use the Xcode sanitizers to fix those crashes in Swift.
Race conditions and Data Races can lead to unexpected behavior, and as an engineer it's important to know the differences between both.
Learn how to use the Thread Sanitizer to catch Data Races in Swift. Fix flaky tests and weird crashes and see Data Race examples in Swift.
The @AppStorage property wrapper allows reading and writing user defaults easily, while monitoring changes to redraw SwiftUI Views.
Throwing properties and custom subscripts that throw allows us to catch failures from read-only accessors and handle unhappy paths.
Unwrap or throw an error if an optional returns nil. It's a common scenario in Swift programs for which we're exploring several solutions.
Async let allows executing multiple async methods in parallel and awaiting all results together for better performance in your apps.
Dependency Injection using latest Swift features allows you to mock data, and write tests easily without 3rd party dependencies.
Actors in Swift prevent Data Races by synchronizing access. Combined with nonisolated access you can prevent crashes in your apps.
Static Member Lookup in Generic Contexts allows simplifying code while improving the readability and discoverability of your code.