Swift module health

The following console application is created to verify the health swift modules by checking the component coupling like described in the the book Clean architecture by Uncle Bob.

By using a metric like this, you will have an overview about the coupling of the modules and are able to tweak and follow up modules that appear to be in the zone of pain or the zone of uselessness.

Swift module health - Github

Output

Image

Image

By interpreting the output from above, we could try to get module B closer to the main sequence and out of the zone of pain. This could be done by trying to make this module less concrete by providing extra public protocols and start to make concrete implementations internal again.