Search code examples
objective-cswiftafnetworkingcocoapodsafnetworking-2

How to view Swift API of AFNetworking?


I am working on a Swift project using AFNetworking. I am using Cocoapods to manage my third-party Obj-C libraries and using bridge-header to import them in the Swift codes.

The problem is that I cannot use CMD+click to find the Swift API of those Obj-C classes (I am always led to Obj-C interface or implementation). I have to guess the format of API according to so-called Obj-C Swift Interaction and it is very annoying sometimes.

Is there any way I can directly check the Swift style API of existing Obj-C libraries?

Thanks in advance!


Solution

  • You can use Alamofire (swift version of AFNetworking) : https://github.com/Alamofire/Alamofire