Learn about the Equatable protocol in Swift, find out when it’s necessary to adopt it and meet an additional reason that makes it important.
Read about how to test error throwing code that exists in actors asynchronously and what to look out for smooth testing.
Learn how to let Xcode 14 auto-complete all the necessary code in Codable types when they don’t conform automatically to it.
It’s often needed to get enum cases as an array and iterate through them, something that’s really easy in Swift and this post shows how.
Read about the in-out parameters in Swift functions and find out how to mutate provided arguments if necessary inside functions.
Go through the implementation of a simple wrapper around Timer in Swift, and see how small solutions like that can enhance the coding process.
Meet a built-in API that allows to enumerate substrings and count text components such as words and paragraphs easily in Swift.
Learn how to use the new async/await pattern in order to fetch remote data both in recent and in older system versions.
Write safer and more comprehensive code in Swift by implementing and using custom strongly typed values, avoiding potential unwanted problems.
Find out in this post how to create enums with raw values of custom types in Swift, and go through a demonstration of all you need to know.