Skip to content

XCInvocationP

Oleksandr Bretsko edited this page Dec 27, 2020 · 1 revision

XCInvocationP

public protocol XCInvocationP

Requirements

lastSelectedLineIdx

var lastSelectedLineIdx: Int?

tabWidth

var tabWidth: Int

contentUTI

var contentUTI: Str

selectLines(startIndex:​endIndex:​)

selects lines in XCode

@discardableResult func selectLines(startIndex: Int, endIndex: Int) -> Bool

insert(_:​after:​)

inserts string at given index in buffer if it has linebreaks (newlines) - will immediately regenerate current buffer and create more lines

@discardableResult func insert(_ str: Str, after index: Int) -> Bool

Clone this wiki locally