Swiftagram Documentation

Enumeration Recipient

public enum Recipient: Wrapped  

An enum holding reference to either a User or a Conversation instance.

%223 Recipient Recipient Wrapped Wrapped Recipient->Wrapped

Nested Types

Recipient.Collection

A struct representing a Recipient collection.

Conforms To

Wrapped

Initializers

init(wrapper:​)

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

Init.

Parameters

wrapper @escaping () -> Wrapper

A valid Wrapper.

Enumeration Cases

user

case user(User) 

A valid User.

thread

case thread(Conversation) 

A valid Thread.

error

case error(Wrapper) 

Neither, meaning something went wrong.

Properties

wrapper

public var wrapper: () -> Wrapper  

The underlying Response.