Mention
public struct Mention : CustomStringConvertible, Equatable
A Mention is a substring of the Tweet’s text. For example, a hashtag or other user or url that is mentioned in the Tweet.
Note carefully the comments on the range property in a Mention.
-
The keyword (hashtag, user, url) for this mention. This will include # or @ or http prefix.
Declaration
Swift
public let keyword: String
-
The range corresponding to this mention with a NSAttributedString made from the Tweet’s text.
Declaration
Swift
public let nsrange: NSRange
-
Declaration
Swift
public var description: String { get }