Hi, I new to iOS dev and swift/alamofire..
Currently I need to update our app, but when try to run using emulator, got error as below
"'DownloadFileDestination' is not a member type of class 'Alamofire.DownloadRequest'"
Below is the code.
let destination: DownloadRequest.DownloadFileDestination = { _, _ in
let directoryURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0]
let file = directoryURL.appendingPathComponent(saveUrl, isDirectory: false)
return (file, [.createIntermediateDirectories, .removePreviousFile])
}
Im have google and try several answer, but still not success.
Thanks