gonzalezreal / swift-markdown-ui

Display and customize Markdown text in SwiftUI
MIT License
2.53k stars 318 forks source link

.onLongPressGesture when it causes not to scroll #227

Closed wscqs closed 1 year ago

wscqs commented 1 year ago

ScrollView{ VStack{ Markdown(content) .onLongPressGesture(perform: { }) } }

GestureOnMarkdownCell causes scrollview can not scroll

gonzalezreal commented 1 year ago

I am pretty sure the same will happen with any other view, for instance, Text. This post may help: https://danielsaidi.com/blog/2022/11/16/using-complex-gestures-in-a-scroll-view

Please, consider using the provided template when opening an issue and fill in all the relevant information. In the future, I may overlook or completely ignore issues without the required information, as it is very time-consuming to guess the actual problem.