As a seasoned software architect with extensive experience, I founded Side Effect to provide top-notch architectural services to companies seeking mobile development expertise. Throughout my career working in both small and large businesses, I have faced various challenges. In this blog, I share some of my experiences and lessons learned. I hope you find it enjoyable to read.
A few weeks ago I introduced in this blog an iOS framework called RxFlow. I’ve been working on this framework for several months, and it is now ready to be used. If you haven’t read it yet, I suggest you take a look at this post "RxFlow Part1 - In Theory".
In Swift, some APIs such as RxSwift use a technic that confines the code they’re exposing in a dedicated namespace. In this post we will figure out how this is done in the most generic and versatile way.
With Swift, you can define protocols by associating one or more generic types. These types are defined using the associatedtype keyword. The name “Generic Type” is a bit usurped here, we should talk about a placeholder for a reserved type. Indeed, we will see that such protocols do not offer great flexibility of use when it comes to consider them as generic.