Is there any way to get progress from dataTaskWithURL in swift while the data is downloading?
dataTaskWithURL
NSURLSession.sharedSession().dataTaskWithURL(...)
for the data been download you need to set the NSURLSessionDownloadDelegate and to implement URLSession(_:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:)
NSURLSessionDownloadDelegate
URLSession(_:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:)
There is a nice tutorial about it here but is in object-c.