Swiftagram Documentation

Structure Tray​Item

public struct TrayItem: Wrapped  

A struct representing a TrayItem.

%321 TrayItem TrayItem Wrapped Wrapped TrayItem->Wrapped

Nested Types

TrayItem.Unit

A struct representing a TrayItem single response.

TrayItem.Collection

A struct representing a TrayItem collection.

TrayItem.Dictionary

A struct representing a TrayItem dictionary.

Conforms To

Wrapped

Initializers

init(wrapper:​)

public init(wrapper: @escaping () -> Wrapper)  

Init.

Parameters

wrapper @escaping () -> Wrapper

A valid Wrapper.

Properties

wrapper

public var wrapper: () -> Wrapper

The underlying Response.

identifier

public var identifier: String!  

The identifier.

position

public var position: Int?  

The ranked position.

seen​Position

public var seenPosition: Int?  

The seen ranked position.

available​Count

public var availableCount: Int?  

The media count.

fetched​Count

public var fetchedCount: Int?  

The count of media that have actually been fetched.

title

public var title: String?  

The title, main timestamp of the tray item or author username.

cover

public var cover: Media?  

The cover media.

items

public var items: [Media]?  

The actual content.

expiring​At

public var expiringAt: Date?  

The expiration date of the tray element, if it exists.

published​At

public var publishedAt: Date?  

The latest reel media date, if it exists.

seen​At

public var seenAt: Date?  

The date you last opened the tray element, if it exists.

user

public var user: User?  

The user.

is​Muted

public var isMuted: Bool?  

Whether it's muted or not.

contains​Videos

public var containsVideos: Bool?  

Whether the tray has video content.

contains​Close​Friends​Exclusives

public var containsCloseFriendsExclusives: Bool?  

Whether the tray has content the logged in user can see being a close friend.