Welcome to part 2 of the series where we study the fundamentals of Generics in Swift. If you have not read part 1 or lost your memory, please review it…
The Swift Standard Library ships with many collections such as Arrays, Dictionaries and Sets. In addition to its English Language meaning, Collection also means a Swift protocol that inherits from…
Most of us who have been using Swift to build apps have exchanged data with servers, and this data is usually in some well known format such as JSON, XML…
Swift introduced the Result type in its 5.0 release (Apple documentation). Using it, we can represent both success and error cases with a single type. It is highly useful with…
I was living under a rock until very recently and believed that the Error protocol was truly empty with no requirements. While it is true that there are no requirements,…