Swift & Cocoapods

How to integrate Cocoapods into a vanilla Swift project

platform :ios, '7.0'
pod 'AFNetworking', '~> 2.2.4'
#import <AFNetworking/AFNetworking.h>
let manager = AFHTTPRequestOperationManager()manager.GET(
"http://example.com/resources.json",
parameters: nil,
success: { (operation: AFHTTPRequestOperation!,
responseObject: AnyObject!) in
println("JSON: " + responseObject.description)
},
failure: { (operation: AFHTTPRequestOperation!,
error: NSError!) in
println("Error: " + error.localizedDescription)
})

Mobile engineering @Pitch ☀️ Avid learner of #clojure ☀️ #sailing #bread #swift #reactnative #typescript ☀️ [he/him]

Mobile engineering @Pitch ☀️ Avid learner of #clojure ☀️ #sailing #bread #swift #reactnative #typescript ☀️ [he/him]