Updated the placeholder icon cache key to include the 'initials'

pull/1061/head
Morgan Pretty 10 months ago
parent cba6729618
commit 4b54d242fe

@ -60,7 +60,7 @@ public class PlaceholderIcon {
.compactMap { word in word.first.map { String($0) } } .compactMap { word in word.first.map { String($0) } }
.joined() .joined()
return SNUIKit.placeholderIconCacher(cacheKey: "\(seed)-\(Int(floor(size)))") { return SNUIKit.placeholderIconCacher(cacheKey: "\(seed)-\(initials)-\(Int(floor(size)))") {
let layer = icon.generateLayer( let layer = icon.generateLayer(
with: size, with: size,
text: (initials.count >= 2 ? text: (initials.count >= 2 ?

Loading…
Cancel
Save