© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
A. TsadokMastering Swift Package Managerhttps://doi.org/10.1007/978-1-4842-7049-3_6

6. And Sharing for All

Avi Tsadok1  
(1)
Tel Mond, Israel
 

There is an easy way and a hard way. The hard part is finding the easy way.

—Anonymous

Emily called Kyle and Joshua for a short discussion.

“Ok, remember our second app, ‘Weather for all’? The back-end team doesn’t want to keep maintaining two servers, and they asked us to unify our requests to the same endpoints.”

“Now that we have the network Swift Package, we can duplicate it and add it to the project. Few hours and we all set,” Kyle suggested.

Emily didn’t like the idea: “But that’s code duplication. What’s the point ...

Get Mastering Swift Package Manager: Build and Test Modular Apps Using Xcode now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.