This is the demo app for CodeEditorView Have a look at CodeEditorView —a SwiftUI code editor view for iOS and macOS— for more details.