RichText
public indirect enum RichText : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum
Describes a text object inside an instant-view web page
-
A plain text
- text: Text
Declaration
Swift
case plain(text: String)
-
A bold rich text
- text: Text
Declaration
Swift
case bold(text: RichText)
-
An italicized rich text
- text: Text
Declaration
Swift
case italic(text: RichText)
-
An underlined rich text
- text: Text
Declaration
Swift
case underline(text: RichText)
-
A strikethrough rich text
- text: Text
Declaration
Swift
case strikethrough(text: RichText)
-
A fixed-width rich text
- text: Text
Declaration
Swift
case fixed(text: RichText)
-
A rich text URL link
- text: Text
- url: URL
- isCached: True, if the URL has cached instant view server-side
Declaration
Swift
case url(text: RichText, url: String, isCached: Bool)
-
A rich text email link
- text: Text
- emailAddress: Email address
Declaration
Swift
case emailAddress(text: RichText, emailAddress: String)
-
A subscript rich text
- text: Text
Declaration
Swift
case `subscript`(text: RichText)
-
A superscript rich text
- text: Text
Declaration
Swift
case superscript(text: RichText)
-
A marked rich text
- text: Text
Declaration
Swift
case marked(text: RichText)
-
A rich text phone number
- text: Text
- phoneNumber: Phone number
Declaration
Swift
case phoneNumber(text: RichText, phoneNumber: String)
-
A small image inside the text
- document: The image represented as a document. The image can be in GIF, JPEG or PNG format
- width: Width of a bounding box in which the image should be shown; 0 if unknown
- height: Height of a bounding box in which the image should be shown; 0 if unknown
Declaration
Swift
case icon(document: Document, width: Int32, height: Int32)
-
A rich text anchor
- text: Text
- name: Anchor name
Declaration
Swift
case anchor(text: RichText, name: String)
-
A concatenation of rich texts
- texts: Texts
Declaration
Swift
case s(texts: [RichText])