If you decide to use the Google Shortener API, then this may be the answer. They use AFNetworking, written in Swift, to shorten the URL. Sample code as follows:
func getShorURLFromGoogle(longURL: String) { let manager = AFHTTPRequestOperationManager() manager.requestSerializer = AFJSONRequestSerializer() as AFJSONRequestSerializer let params = [ "longUrl": longURL ] let appDelegate = UIApplication.sharedApplication().delegate as AppDelegate manager.POST("https://www.googleapis.com/urlshortener/v1/url?key=\(appDelegate.googleMapsApiKey)", parameters: params, success: { (operation: AFHTTPRequestOperation!,responseObject: AnyObject!) in if let responseObject = responseObject as? NSDictionary {
grandagile
source share