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 561c98c966
commit a4ead7210a
@@ -42,6 +42,7 @@ struct AttributedStringBuilder: AttributedStringBuilderProtocol {
static func invalidateCaches() {
AttributedStringBuilderV1.invalidateCaches()
AttributedStringBuilderV2.invalidateCaches()
}
init(cacheKey: String = defaultKey, mentionBuilder: MentionBuilderProtocol) {