Skip to content

Commit 914a00f

Browse files
graycreateclaude
andcommitted
fix: enable text selection and copy/paste in RichView
Added .textSelection(.enabled) modifier to Text view in RichView to allow users to select and copy text content. This enables standard iOS text selection gestures (long press, drag to select) and copy/paste functionality. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 28a6c33 commit 914a00f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

V2er/Sources/RichView/Views/RichView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public struct RichView: View {
6969
Text(attributedString)
7070
.font(.system(size: configuration.stylesheet.body.fontSize))
7171
.lineSpacing(configuration.stylesheet.body.lineSpacing)
72+
.textSelection(.enabled)
7273
.environment(\.openURL, OpenURLAction { url in
7374
onLinkTapped?(url)
7475
return .handled

0 commit comments

Comments
 (0)