There is an amazing project called Swift Package Manager. I hope you know about it, if not take a second and have a look on it :)