bugfix: include color to key for cache
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user