6

I am creating for myself Xcode 8 extension with new XcodeKit. I get text with XCSourceTextBuffer and range with XCSourceTextRange. With that I have start and end position of selected text and I can append some text to beginning of the line. The problem is that I can't catch latest position of my cursor, I want to check position of cursor so I can insert text there, not at where my line begins. Does anyone know how to handle that?

Iulian Onofrei
  • 9,188
  • 10
  • 67
  • 113
Flipper
  • 1,107
  • 1
  • 11
  • 32

0 Answers0