Posts covering tips and techniques for working with Swift language
Make use of the new clock APIs in Swift 5.7 to delay an async task by a certain duration without calling the old method that accepts nanoseconds.
In Swift 5.7 that comes with Xcode 14 we can check if two values of type Any are equal, because we can cast values to any Equatable and use any Equatable as a parameter type.
Explore different ways to iterate over items and indices in a collection and learn why enumerated() is not a good fit for it.
Explore how to get around the Swift language limitation of not being able to define static mutable properties in generic types and protocol extensions.
Build a system for conforming polymorphic types to Codable protocol, that can be reused in multiple situations.
Customize encoding and decoding logic for individual fields of codable types in Swift by defining codable property wrappers.
Define your own operator that lets you use String as default value for any Optional type in debug prints.
Make Swift 5 enums that have multiple associated values of different types conform to Encodable and Decodable protocols for saving data to disk or interacting with Web APIs.