Refactor Your iOS Application Network Layer Into a Module

What we’ll do

What you need to know

  • Cocoapods (you can read more about cocoapods here)
  • URLSession (good to know)
  • Alamofire (good to know)

Starting point

First

Second

Third

We group all network related pod on a variable to make sure that we only use them on the NetworkSevice target

Conclusion

Follow me

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store