Skip to content

Conversation

@Vishruth-N
Copy link

Fixes #76

The issue was that the TextEditor's .id() modifier included colorScheme, which caused SwiftUI to recreate the entire TextEditor view whenever you switched themes. Now it only recreates when the font or font size changes, preserving your scroll position during theme switches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switching to dark mode autoscrolls to top of doc

4 participants