autoscroll not working
Not having any luck setting a selection and then it scrolling to that position per the example.
Can you attach an example project? Is this on iOS or macOS?
Same issue ... here is my code:
let ce = CodeEditor(source : $activeItemModel.item.body, selection : $selection, language : language, theme : model.selectedTheme, flags : [ .selectable, .editable, .smartIndent ], autoPairs : [ "{": "}", "<": ">", "'": "'" ], autoscroll : true
` let startIndex = activeItemModel.item.body.index(activeItemModel.item.body.startIndex, offsetBy: searchIndices[lastIndice]) let endIndex = activeItemModel.item.body.index(activeItemModel.item.body.startIndex, offsetBy: searchIndices[lastIndice] + searchText.count)
selection = startIndex..<endIndex `