SwiftagramCrypto Documentation

Structure Media

public struct Media: Wrapped  

A struct representing a Media.

%115 Media Media Wrapped Wrapped Media->Wrapped

Nested Types

Media.Version

A struct representing some content Version.

Media.Picture

A struct representing a Picture.

Media.Video

A struct representing a Video.

Media.Content

An enum holding reference to the actual Media content.

Media.Unit

A struct representing a Media single response.

Media.Collection

A struct representing a Media collection.

Media.Link

A struct defining a media permalink.

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.

primary​Key

public var primaryKey: Int!  

The primary key.

code

public var code: String?  

The code (for media URL).

expiring​At

public var expiringAt: Date?  

The expiration date (if it exists).

taken​At

public var takenAt: Date?  

The time at which the media was captured.

size

public var size: CGSize?  

The original size.

aspect​Ratio

public var aspectRatio: CGFloat  

The aspectRatio value, or 1.

resolution

public var resolution: CGFloat  

The resolution value, or 0.

caption

public var caption: Comment?  

The caption.

comments

public var comments: Int?  

The amount of comments.

likes

public var likes: Int?  

The amount of likes.

was​Liked​ByYou

public var wasLikedByYou: Bool?  

Whether the current user has liked the media or not.

content

public var content: Content  

The actual content.

user

public var user: User?  

The media owner.

location

public var location: Location?  

The location of the media.