Swift Tutorials
-
The Equatable Protocol In Swift
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.
-
Testing Throwing Methods In Swift Actors
Read about how to test error throwing code that exists in actors asynchronously and what to look out for smooth testing.
-
New Feature in Xcode 14 – Inserting Code Automatically To Codable Types Using Auto-Completion
Learn how to let Xcode 14 auto-complete all the necessary code in Codable types when they don’t conform automatically to it.
-
Iterating Through Enum Cases With CaseIterable In Swift
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.
-
In-Out Parameters In Swift Functions
Read about the in-out parameters in Swift functions and find out how to mutate provided arguments if necessary inside functions.
-
Enumerating and Counting Text Components in Swift
Meet a built-in API that allows to enumerate substrings and count text components such as words and paragraphs easily in Swift.
-
Fetching Remote Data With Async/Await In Recent And Older System Versions
Learn how to use the new async/await pattern in order to fetch remote data both in recent and in older system versions.
-
Using Custom Strongly Typed Values For Better Coding in Swift
Write safer and more comprehensive code in Swift by implementing and using custom strongly typed values, avoiding potential unwanted problems.
-
Creating Enums with Custom Raw Type in Swift
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.