Add support for <details> and <summary> tags (#6077)

This commit is contained in:
Stefan Ceriu
2026-09-03 11:47:12 +03:00
committed by GitHub
parent 7052751e38
commit 4355307ba0
15 changed files with 134 additions and 22 deletions
@@ -9,10 +9,11 @@
import Foundation
nonisolated struct AttributedStringBuilderComponent: Hashable, Identifiable {
enum ComponentType {
enum ComponentType: Hashable {
case plainText
case blockquote
case codeBlock
case details(summary: String)
}
/// Identifier for the `Identifiable` conformance, allows edits to the `FormattedBodyText` to animate seamlessly