Replies: 8 comments 5 replies
-
Hi @noobnooc, Have you considered using SwiftUI's text selection API? By applying the Markdown {
"""
You can quote text with a `>`.
> Outside of a dog, a book is man's best friend. Inside of a
> dog it's too dark to read.
– Groucho Marx
"""
}
.textSelection(.enabled) While it would be possible to add a |
Beta Was this translation helpful? Give feedback.
-
+1 on this. It'd be nice to have the option of modifying blocks, like the code-blcok. |
Beta Was this translation helpful? Give feedback.
-
Also, text selection doesn't seem to work on my simulator. :/
Edit: works fine on the phone |
Beta Was this translation helpful? Give feedback.
-
@gonzalezreal, I added the copy button, but then I realized that I don't have access to the code. That's really unfortunate. |
Beta Was this translation helpful? Give feedback.
-
I am working on something to enable this functionality. Unfortunately, it can take a while because I need to refactor a few things internally. In the meantime, please use the |
Beta Was this translation helpful? Give feedback.
-
I would like to add a copy button to the code block, but I am unable to find a method to do so. Below, you may find the code that I have attempted thus far:
Maybe we can add the code content to the configuration? Or is there another way to do this?
Beta Was this translation helpful? Give feedback.
All reactions