From 46f70475e6a00ab50ed929d75d4e0c0bb963be6c Mon Sep 17 00:00:00 2001 From: gxhass Date: Wed, 15 Apr 2026 17:02:21 -0700 Subject: [PATCH] feat: enable text selection in chat messages Add .textSelection(.enabled) to BuddiMarkdownText so users can highlight and copy message text from the notch chat panel. Requires macOS 12+ (already satisfied by LSMinimumSystemVersion 14.0). No visual or layout changes; selection only activates on user drag. --- buddi/Buddi/UI/Components/MarkdownRenderer.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buddi/Buddi/UI/Components/MarkdownRenderer.swift b/buddi/Buddi/UI/Components/MarkdownRenderer.swift index d03345a..8e02f32 100644 --- a/buddi/Buddi/UI/Components/MarkdownRenderer.swift +++ b/buddi/Buddi/UI/Components/MarkdownRenderer.swift @@ -17,10 +17,12 @@ struct BuddiMarkdownText: View { .font(.system(size: fontSize)) .foregroundStyle(baseColor) .tint(Color.accentColor) + .textSelection(.enabled) } else { SwiftUI.Text(text) .font(.system(size: fontSize)) .foregroundStyle(baseColor) + .textSelection(.enabled) } } }