Files

21 lines
572 B
Swift

// SPDX-FileCopyrightText: 2026 Kaede Akino
// SPDX-License-Identifier: GPL-3.0-only
import MarkdownView
import SwiftUI
/// Both hosts use the same Markdown engine; their composers remain platform-owned.
public struct AssistantMessageBody: View {
private let text: String
private let theme: MarkdownTheme
public init(_ text: String, theme: MarkdownTheme = .default) {
self.text = text
self.theme = theme
}
public var body: some View {
MarkdownView(text, theme: theme).frame(maxWidth: .infinity, alignment: .leading)
}
}