Open ghost opened 7 years ago
You can add this to the docs for integration with Alamofire 4 and Swift 3
let overlay = MRProgressOverlayView.showOverlayAdded(to: self.view, title: "Uploading", mode: .determinateCircular, animated: true)
upload.uploadProgress(closure: { //Get Progress
progress in
print(progress.fractionCompleted)
self.progressFloat = Float(progress.fractionCompleted)
if progress.fractionCompleted < 1 {
overlay?.setProgress(self.progressFloat, animated: true)
}
if progress.fractionCompleted == 1 {
print("Completed")
overlay?.dismiss(true)
}
})
Hi guys,
First off, thanks for putting this really amazing looking library out there
Could someone please provide a solution as to how to implement this beautiful library in Swift
I can load the OverlayView but I can't figure out how to connect the progress
I am using Alamofire
In my post request