Lazy var in Swift explained with code examples
A lazy var in Swift allows you to delay the initialization of values until it's used. This can be great for performance optimizations.
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.
A lazy var in Swift allows you to delay the initialization of values until it's used. This can be great for performance optimizations.
Closure in Swift can be written and used in different ways which are best learned by code examples that cleary explain how to use them.
Find the most popular blog posts of 2020 written at SwiftLee. Check out which posts you should've read at least.
Associated Types in Swift allow you to reuse code. Define a protocol once and reuse it among different types and constraints.
Learn how to use the Result enum type in Swift. Make use of methods like map, flatMap, flatMapError, and clean up your code.
Constraints in Core Data prevent duplicate entries without fetching for existing values. Configure entities by marking attributes as unique.
NSManagedObject properties can be updated upon insert, modification, or deletion using methods like awakeFromInsert and prepareForDeletion.
Try catch explained. Learn how to catch specific error types with error handling in Swift. Code examples show all possible statements.
Diffable Data Sources can be used in Core Data by using an NSFetchedResultsController. Prevent common pitfalls and performance drains.
Diffable Data Sources simplify data managing in UIKit apps with several benefits. Adopt this new API with ease and benefit too!
Persistent History Tracking allows you to keep an app and its extensions up to date with changes happening in a single Core Data Store.
Write-Ahead Logging (WAL) in Core Data results in performance and concurrency. Force commits make sure data is stored in the SQLite file.