I have an Error at 27:35 in this course for Data
my code
// Check cache before downloading data
if let cachedData = CacheManager.getVideoCache(self.video!.thumbnail) {
// Set the thumbnail imageview
self.thummbnailimageView.image = UIImage(data: cachedData)
return
}
Error message
Cannot convert value of type ‘Date’ to expected argument type ‘Data’