feat/ios-core-session-api #32

Merged
killingdruid merged 36 commits from feat/ios-core-session-api into main 2026-05-21 13:24:31 +00:00
Showing only changes of commit 419f409d98 - Show all commits

View File

@@ -526,7 +526,7 @@ public struct MessageRow: View {
.font(.caption)
.foregroundStyle(.secondary)
}
Text(message.text)
Text(renderedText)
.textSelection(.enabled)
if !message.reactions.isEmpty {
Text(message.reactions.map(\.emoji).joined(separator: " "))
@@ -552,6 +552,17 @@ public struct MessageRow: View {
}
}
}
private var renderedText: AttributedString {
(
try? AttributedString(
markdown: message.text,
options: AttributedString.MarkdownParsingOptions(
interpretedSyntax: .inlineOnlyPreservingWhitespace
)
)
) ?? AttributedString(message.text)
}
}
public struct ComposeBar: View {