Contents

init(insertionPoint:typingAttributes:)

Initialize a selection to a single insertion point.

Declaration

init(insertionPoint: AttributedString.Index, typingAttributes: AttributeContainer? = nil)

Parameters

  • insertionPoint:

    The index of the string where the charet should be positioned.

  • typingAttributes:

    The attributes for the next character that is typed, or nil if they should be inferred from the attributes on the text.