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
offsetOffset of the entity in UTF-16 code units
lengthLength of the entity, in UTF-16 code units
typeType of the entity
View on GitHub
Install in Dash
TextEntity Structure Reference