gonzalezreal / swift-markdown-ui

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

When i'm trying to use MarkdownUI in LazyVStack inside a ScrollView, The page cannot scroll and the layout is shaking up and down. #209

Closed CoderLineChan closed 1 year ago

CoderLineChan commented 1 year ago

Describe the bug

some code

Screenshots

Version information

Additional context Add any other context about the problem here.

gonzalezreal commented 1 year ago

Hi @CoderLineChan,

If you provide an isolated Xcode project that reproduces the issue, I can help you to find the problem.

gonzalezreal commented 1 year ago

Hi @CoderLineChan,

You are seeing this issue because you have multiple nested vertical scroll views. Beware that the Form view in your MarkdownView is also a vertical ScrollView, which collides with the main scroll view in which you are rendering the ChatRoomCellViews.

In short, this is not a MarkdownUI issue.

kchro3 commented 11 months ago

@gonzalezreal , I think that I am running into a similar issue, but I'd love to get your assistance.

gonzalezreal commented 11 months ago

@kchro3 Please provide a working Xcode project reproducing the issue, and I will investigate it.

djmango commented 8 months ago

Can confirm this exists for me as well

AugustDev commented 6 months ago

What would be the right way to handle ScrollView containing multiple vertical items of Markdown @gonzalezreal ? Since Markdown contains scrolling it interferes with the parent scroll view and users are not able to scroll vertically when mouse hovers Markdown component?