XcodeKit extension cursor position

335 Views Asked by At

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?

0

There are 0 best solutions below