fix: duplicate line IDs in rendered view (#34)

This commit is contained in:
Owen Gretzinger
2025-07-17 15:00:42 -04:00
committed by GitHub
parent 780357aa18
commit c03fa953c9
+1 -1
View File
@@ -6,7 +6,7 @@ struct RenderedNotesView: View {
var body: some View {
ScrollView {
VStack(alignment: .leading, spacing: 8) {
ForEach(text.split(separator: "\n"), id: \.self) { line in
ForEach(Array(text.split(separator: "\n").enumerated()), id: \.offset) { index, line in
self.renderLine(String(line))
}
}