Fix for the content not updating after an edit, restore the usage of the content based identifier in the formatted body for components.

This commit is contained in:
Mauro Romito
2026-05-26 14:00:35 +02:00
committed by Mauro
parent ef82d184fe
commit 277f0cc5bc
3 changed files with 11 additions and 5 deletions
@@ -8,13 +8,15 @@
import Foundation
struct AttributedStringBuilderComponent: Hashable {
struct AttributedStringBuilderComponent: Hashable, Identifiable {
enum ComponentType {
case plainText
case blockquote
case codeBlock
}
/// Identifier for the `Identifiable` conformance, allows edits to the `FormattedBodyText` to animate seamlessly
let id: String
let attributedString: AttributedString
let type: ComponentType
}