init(contents:markerAttributes:textList:children:)
Creates a text list element with the list elements, nesting level, and marker attributes you provide.
Declaration
convenience init(contents: NSAttributedString, markerAttributes: [NSAttributedString.Key : Any]? = nil, textList: NSTextList, children: [NSTextListElement]?)Parameters
- contents:
An Nsattributedstring that contains the contents of the text list element.
- markerAttributes:
A dictionary of Key keys and IDs that describe the marker attributes.
- textList:
The Nstextlist to add elements to.
- children:
An array of Nstextlistelement elements.