Tweet

public struct Tweet : CustomStringConvertible, Equatable

Tweet is a simple container which that holds the data in a Tweet. Tweet instances are created by fetching from Twitter using a Twitter.Request.

You will only need to access the public properties of Tweets.

  • The text body of the Tweet

    Declaration

    Swift

    public let text: String
  • Author of the tweet

    Declaration

    Swift

    public let user: User
  • When the Tweet was created

    Declaration

    Swift

    public let created: Date
  • Unique identifier for this Tweet

    Declaration

    Swift

    public let identifier: String
  • MediaItems for each image url appearing in the Tweet

    Declaration

    Swift

    public let media: [MediaItem]
  • All hashtags appearing in the Tweet

    Declaration

    Swift

    public let hashtags: [Mention]
  • All URLs appearing in the Tweet

    Declaration

    Swift

    public let urls: [Mention]
  • All user names appearing in the Tweet

    Declaration

    Swift

    public let userMentions: [Mention]
  • Text description of Tweet

    Declaration

    Swift

    public var description: String { get }