- MapTextEditor(text: content, colorScheme: colorScheme).onChange(of: map.content) { _ in
- try? viewContext.save()
- }
- .background(mapColor.background)
- .foregroundColor(mapColor.foreground)
- .frame(minHeight: 96.0)
+ MapTextEditor(text: $content, colorScheme: colorScheme)
+ .background(mapColor.background)
+ .foregroundColor(mapColor.foreground)
+ .frame(minHeight: 96.0)