Writing a Network Layer in Swift: Protocol-Oriented Approach

Malcolm Kumwenda
11 min readMar 29, 2018

In this guide we’ll look at how to implement a network layer in pure Swift without any third-party libraries. Lets’ jump straight to it! After reading the guide, our code should be:

  • protocol-oriented
  • easy to use
  • easy to implement
  • type safe
  • use enums to…

--

--