Structures

The following structures are available globally.

  • A MediaItem holds the network url and aspectRatio of an image attached to a Tweet.

    MediaItems are created automatically when a Tweet object is created.

    You will only need to use the public properties.

    See more

    Declaration

    Swift

    public struct MediaItem : 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.

    See more

    Declaration

    Swift

    public struct Tweet : 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.

    See more

    Declaration

    Swift

    public struct Mention : CustomStringConvertible, Equatable
  • A container to hold data about a Twitter user. You will only need to use the public properties.

    See more

    Declaration

    Swift

    public struct User : CustomStringConvertible, Equatable