Alamofire download method "Use of undeclared type ´DownloadFileDestination´"
<p>I´m trying to write the method to download a file with custom parameters and headers, but when I write the method XCode shows the Usage of undeclared type 'DownloadFileDestination'</p>

<p>Here's my code:</p>

<pre><code>public func download(JSON jsonObject:[String:AnyObject], inUrl url:URLStringConvertible,headers:[String:String]?,paramEnconding:ParameterEncoding) {
    let destination = Alamofire.Request.suggestedDownloadDestination(directory: .DocumentDirectory, domain: .UserDomainMask)
    Alamofire.download(method: Method, URLString: URLStringConvertible, parameters: [String: AnyObject]?, encoding: ParameterEncoding,headers: [String: String]?, destination: DownloadFileDestination) { temporaryURL, response in
        let fileManager = NSFileManager.defaultManager()
        let directoryURL = fileManager.URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask)[0]
        let pathComponent = response.suggestedFilename

        return directoryURL.URLByAppendingPathComponent(pathComponent!)
    }
}
</code></pre>

<p>Note that I haven't put the markdown and still XCode throws the error.</p>