 }
 
 struct PictureOfTheDayOverlayView: View {
+    var entry: PictureOfTheDayEntry
+
 	var body: some View {
 		content
 			.background(

		ImageCacheController.shared?.fetchImage(withURL: imageThumbnailURL, failure: { _ in
			completion(sampleEntry)
		}, success: { fetchedImage in
			let entry = PictureOfTheDayEntry(date: Date(), contentDate: contentDate, contentURL: contentURL, imageURL: imageThumbnailURL, image: fetchedImage.image.staticImage, imageDescription: imageDescription)
			completion(entry)
		})
	}

	// MARK: Private

	private func fetchImageLicense(forCanonicalPageTitle imageFile: String, _ completion: @escaping (MWKImageInfo?) -> Void) {
		imageInfoFetcher.fetchImageInfo(forCommonsFiles: [imageFile], failure: { error in
			completion(nil)
		}, success: { infoArray in
			guard let infoArray = infoArray as? [MWKImageInfo] else {
				completion(nil)
				return
			}

			if let _ = infoArray.first {
				// TODO: info.license
			} else {
				completion(nil)
			}
		})
	}

}

	let image: UIImage?
	var imageDescription: String? = nil
	var license: MWKLicense? = nil

    // MARK: License Image Parsing

    var licenseImages: [LicenseImage] {
        var licenseImages: [LicenseImage] = []
        let licenseCodes: [String] = license?.code?.components(separatedBy: "-") ?? ["generic"]

        for license in licenseCodes {
            guard let image = UIImage(named: "license-\(license)") else {
                continue
            }
            licenseImages.append(LicenseImage(id: license, image: Image(uiImage: image)))
        }

        return licenseImages
    }

}

// MARK: - TimelineProvider
