TootContent
public struct TootContent
Undocumented
-
Undocumented
Declaration
Swift
public init(wrappedValue: String, plainContent: String, attributedString: NSAttributedString) -
The content value received from the server where special content like emoji :codes codes have been replaced with HTML
tags
Declaration
Swift
public var wrappedValue: String -
A plain text string generated by stripping all HTML formatting. This form excludes images and other content which can’t be represented as plain text.
Declaration
Swift
public var string: String -
An instance of
NSAttributedStringcreated by parsing the HTML string and accounting for fediverse specific content like :emojis, tags, mentiones and others. Use theNSAttributedString.stringfield to access a plain-text representation which includes emoji codes. Images are not included in this representation.Declaration
Swift
public var attributedString: NSAttributedString
TootContent Structure Reference