Foundation

Testing network calls using URLProtocol

Testing network calls is a critical aspect of ensuring the reliability and stability of your iOS applications. We'll explore how to effectively test network calls in Swift using the URLProtocol API.

Unit conversion is easy in Swift

Foundation framework has many useful implementations, that can make our life easier. One of them is Unit and Measurement APIs. Unit and Measurement Measurment is a struct that holds the value of the

Copy on Write in Swift explained with examples

Theory According to Wikipedia - Copy on Write "is a resource-management technique used in computer programming to efficiently implement a "duplicate" or "copy" operation on modifiable resources."

Cleaner inits - ExpressibleBy... protocols

Sometimes structures or classes we create in code can be easily expressed by built-in Swift types. Consider the following code: struct Person { let name: String } let ana = Person(name: "Ana") I