[iOS – Swift] Create API Wrapper With Alamofire
In this section I’ll show you how to create an API Wrapper with Alamofire library in Swift. If you want to develop in Objective-C then you should check this post https://hantran.info/ios-create-api-wrapper-with-afnetworking/ Let’s dive into it! 1. Installation Once again, I recommend to use Pod to install external library. Open the Pod file of your project and use this code to install Alamofire:
1 |
pod 'Alamofire', '~> 3.0' |
Then open terminal and:
1 |
pod install |
Installation should be done without any errors. For others way to…