Ensuring your analytics implementation is easy to use, alter and extend can be difficult. Let's have a look at a possible solution by building a modular analytics layer together in Swift.
Swift protocols can have functions with default parameter values through the use of extensions.