mownier / photostream

A photo sharing iOS app that uses Firebase and is being driven by VIPER architecture.
MIT License
171 stars 41 forks source link

The post upload view didn't show the uploadView.progressView #10

Closed wangdu1005 closed 6 years ago

wangdu1005 commented 6 years ago

Dear Mownier

I struggle in this issues with the upload progressView. Because I did see the initSetup be called, but the actual upload process only dismiss the photoShare view and present the NewFeedsView with loading gray image feed cell. It does not show any uploading progress. Could you give me so hint? Thank u so much.

post upload

    func initSetup() {
        backgroundColor = UIColor.white

        imageView = UIImageView()
        imageView.contentMode = .scaleAspectFit
        imageView.backgroundColor = UIColor.lightGray

        progressView = UIProgressView()
        progressView.tintColor = UIColor(red: 10/255, green: 10/255, blue: 10/255, alpha: 1.0)

        addSubview(imageView)
        addSubview(progressView)
    }
wangdu1005 commented 6 years ago

controller.view.layer.zPosition = 10

fix the disappearing bug.