Contents

init(id:content:)

Creates a text segment that contains the text you provide.

Declaration

init(id: String = UUID().uuidString, content: String)

Parameters

  • id:

    A unique identifier for the segment.

  • content:

    The text of the segment.