MutableMedia - daneden/Twift GitHub Wiki

MutableMedia

A mutable Media object for posting media with MutableTweet

public struct MutableMedia: Codable 

Inheritance

Codable

Initializers

init(mediaIds:taggedUserIds:)

public init(mediaIds: [Media.ID], taggedUserIds: [User.ID]? = nil) 

Properties

mediaIds

A list of Media IDs being attached to the Tweet.

public var mediaIds: [Media.ID]?

taggedUserIds

A list of User IDs being tagged in the Tweet with Media. If the user you're tagging doesn't have photo-tagging enabled, their names won't show up in the list of tagged users even though the Tweet is successfully created.

public var taggedUserIds: [User.ID]?