We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CodeFileView
1 parent c32ac0b commit f14ed34Copy full SHA for f14ed34
CodeEdit/Features/Editor/Views/CodeFileView.swift
@@ -171,7 +171,8 @@ struct CodeFileView: View {
171
undoManager: undoRegistration.manager(forFile: editorInstance.file),
172
coordinators: textViewCoordinators
173
)
174
- .id(codeFile.fileURL)
+ // This view needs to refresh when the codefile changes. The file URL is too stable.
175
+ .id(ObjectIdentifier(codeFile))
176
.background {
177
if colorScheme == .dark {
178
EffectView(.underPageBackground)
0 commit comments