Arrays VS Sets In Swift
Read in this post about the differences between Array and Set in Swift and see how to perform the most basic and common operations in both.
Tutorials, examples, practical guides, and more about the Swift language.
View all Swift tutorialsRead in this post about the differences between Array and Set in Swift and see how to perform the most basic and common operations in both.
Getting formatted strings from dates is really easy in Swift. Find out in this post all available built-in styles to use in your apps.
Go beyond providing basic textual descriptions of custom errors in Swift exploring additional APIs for perfect user-facing error messages.
Read how to test error throwing code that exists in actors asynchronously and what to watch out for smooth testing.
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.