gonzalezreal / swift-markdown-ui

Display and customize Markdown text in SwiftUI
MIT License
2.25k stars 268 forks source link

Selectable text on iOS #97

Closed matiaskorhonen closed 1 year ago

matiaskorhonen commented 2 years ago

The release notes for 1.0.0 include “Added: Make text not selectable on iOS” but I have some text that I'd like to be selectable. Is this possible? I couldn't figure it out on my own…

gonzalezreal commented 2 years ago

Hi @matiaskorhonen, Sorry for the late response. This is currently not possible. I will consider this in a future release.

gonzalezreal commented 1 year ago

MarkdownUI 2 supports text selection via the .textSelection() modifier. https://github.com/gonzalezreal/swift-markdown-ui/releases/tag/2.0.0