several STTextView instances inside a ScrollView has some redraw issues #43
Closed
serg-vinnie
started this conversation in
General
Replies: 1 comment 4 replies
-
do you happen to have a sample Xcode project so I can jump on? I wonder whether it may be SwiftUI component related |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I do a custom implementation of the STTextView to display file diffs. I did a few fixes to fit my implementation and i'm on my way to finish it. But I will be grateful if someone helps me to speed things up and come to a better solution.
So if I put several STTextViews inside a ScrollView there is a problem with redrawing of the STTextViews which came from a hidden place. A mouse click fixes the issue by forcing a redraw. But in some cases only second click fixes proper redraw of the STLineNumberRulerView ruler.
BUG.mov
Simplified SwiftUI:
Probably I can fix the entire problem with the force redraw by a timer but I believe there is a better solution. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions