Making a Reusable Networking Layer in Swift
Hitting an API is probably one of the most common things you do in Swift and when writing iOS apps. Designing a reusable and robust networking layer can help ensure errors are reduced and your apps are easy to maintain. Endpoints We first need a way to represent each endpoint our application will use. Every endpoint will have a few key properties so we can make a protocol. We can also make some enums to make various parts more safe to use....