Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: doubts about Alamofire vs AFNetworking

I'm developing a new universal app (minimum iOS 7) and I want to use Swift (it's my second app with this new language). In this app I need the AFNetworking framework, but I have some doubts about compatibility with the new version Alamofire. I know that there are some problems between Alamofire and iOS 7. So, what do you suggest? Use Alamofire in this project or continue with AFNetworking?

like image 926
cyclingIsBetter Avatar asked Oct 20 '22 13:10

cyclingIsBetter


1 Answers

You can just get the Alamofire.swift file in your project, instead of dragging the whole Alamofire project. From Alamofire Github page:

Source File

For application targets that do not support embedded frameworks, such as iOS 7, Alamofire can be integrated by adding the Alamofire.swift source file directly into your project. Note that any calling conventions described in the 'Usage' section with the Alamofire prefix would instead omit it (for example, Alamofire.request becomes request), since this functionality is incorporated into the top-level namespace.

like image 51
saurabh Avatar answered Nov 01 '22 18:11

saurabh