FormattedText
public struct FormattedText : Codable, Equatable, FunctionResult
A text with some entities
-
The text
Declaration
Swift
public let text: String
-
Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. -Pre, Code and PreCode entities can’t contain other entities. Bold, Italic, Underline and Strikethrough entities can contain and to be contained in all other entities. All other entities can’t contain each other
Declaration
Swift
public let entities: [TextEntity]
-
A text with some entities
Declaration
Swift
public init(text: String, entities: [TextEntity])
Parameters
text
The text
entities
Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. -Pre, Code and PreCode entities can’t contain other entities. Bold, Italic, Underline and Strikethrough entities can contain and to be contained in all other entities. All other entities can’t contain each other