TextEntity

public struct TextEntity : Codable, Equatable, FunctionResult

Represents a part of the text that needs to be formatted in some unusual way

  • Offset of the entity in UTF-16 code units

    Declaration

    Swift

    public let offset: Int32
  • Length of the entity, in UTF-16 code units

    Declaration

    Swift

    public let length: Int32
  • Type of the entity

    Declaration

    Swift

    public let type: TextEntityType
  • Represents a part of the text that needs to be formatted in some unusual way

    Declaration

    Swift

    public init(offset: Int32, length: Int32, type: TextEntityType)

    Parameters

    offset

    Offset of the entity in UTF-16 code units

    length

    Length of the entity, in UTF-16 code units

    type

    Type of the entity