bugfix: include color to key for cache

This commit is contained in:
Yusuke Hosonuma
2020-08-12 20:19:50 +09:00
parent 12fc791dc3
commit 773a604199
+3 -1
View File
@@ -41,10 +41,12 @@ struct BoardThumbnailImage: View {
}
private var thumbnailImage: UIImage {
guard let key = cacheKey else {
guard let cacheKey = cacheKey else {
return renderImage()
}
let key = "\(cacheKey)-\(fillColor.hashValue)-\(gridColor.hashValue)"
if let image = cacheStorage.value(forKey: key) {
return image
} else {