class APIClient { var user = User() let alamoFireManager : Alamofire.Manager? let center = NSNotificationCenter.defaultCenter() init(){ let con
Here's the Swift 3.0 / Alamofire 4.0 code to get an alamofireManager that has a 5 second timeout:
let configuration = URLSessionConfiguration.default configuration.timeoutIntervalForResource = 5 // seconds let alamofireManager = Alamofire.SessionManager(configuration: configuration)