In Swift, protocol composition is a powerful feature that allows you to combine multiple protocols into a single name. This can be very useful when you want to define a type that needs to adhere to multiple protocols simultaneously. Instead of writing multiple protocols again and again, you can just
Protocol Extensions allow you to add default implementations and computed properties to protocols. This mean, when a type conforms to a protocol, it automatically gains the functionalities provided by the protocol extension. In this article, you will learn about:
SSL Pinning is a technique where we introduce a certificate between application and server so our connection is secure. Although iOS checks for a valid certificate from its trust store while making connection to server.
This article will dive deep into Protocol-Oriented Programming in Swift, exploring advanced techniques and real-world examples.
You may have come across the concept of Arrays and Dictionaries, two primitive types of collecting and storing the values, but there is a third one in the group called Sets. These three types are together referred to as Collection Types. If you're unfamiliar with Arrays and Dictionaries, we strongly
This article will show you how to access a class's private members, such as variables and methods in Swift. In the normal case, you cannot access private members outside the scope of a class directly, but let's see what are the alternative ways to access members within and outside the
As per the standard definition, Closures are self-contained blocks of functionality that can be passed around and used in your code. When passing a closure expression to a function as the function’s final argument, it can be useful to write a trailing closure. Trailing closure is written after the