Chatto icon indicating copy to clipboard operation
Chatto copied to clipboard

Photos/Videos download and upload progress indicator

Open avinashsomashekar opened this issue 6 years ago • 2 comments

Hi, It seems this sdk supports only start and completed/failed state for download/upload progress indicator . Can anyone help me how to show users percentage of download/upload indicator while download/uploading is progress?

Thanks

avinashsomashekar avatar Apr 14 '18 09:04 avinashsomashekar

I was just looking into this. Check the sample code since it does this. Basically your implementation of PhotoMessageViewModel can set:

            self.transferProgress.value = percentComplete

Which seems to work for me. I'm using Alamo Fire, so I do:

        }.downloadProgress() { progress in
            self.transferProgress.value = progress.fractionCompleted
        }

nfranke avatar Apr 30 '18 20:04 nfranke

you can check this gist to see how to create your view model and download an image with progress indicator.

rinat-enikeev avatar Jun 29 '18 11:06 rinat-enikeev