Update alpha of image inside UICollectionViewCell
Clash Royale CLAN TAG #URR8PPP Update alpha of image inside UICollectionViewCell I have a list of an object that have image inside it, I upload the image in this object to firebase storage after showing it inside a collectionviewcell, every thing is work correctly but I need change the alpha of image inside the uicollectionviewcell according to progress of uploading it to firebase storage, what I try the following: class MediaItem :Codable { var id : Int? = 0 var url : String? = "" var pickedImage = UIImage() var currentState:State = .none var progress:Float = 0 func start () { currentState = .uploading var data = Data() data = UIImageJPEGRepresentation(self.pickedImage, 0.8)! // Create a root reference let storageRef = Storage.storage().reference() let imageName = NSUUID().uuidString // Create a reference to the file you want to upload let imageRef = storageRef.child("images/(imageN...