Invalidate caches on both attributed string builders at the same time

This commit is contained in:
Stefan Ceriu
2025-09-08 16:43:23 +03:00
committed by Doug
parent b90d4b6618
commit dead40d2c4

View File

@@ -42,6 +42,7 @@ struct AttributedStringBuilder: AttributedStringBuilderProtocol {
static func invalidateCaches() {
AttributedStringBuilderV1.invalidateCaches()
AttributedStringBuilderV2.invalidateCaches()
}
init(cacheKey: String = defaultKey, mentionBuilder: MentionBuilderProtocol) {