UNCollection
public struct UNCollection
Holds all the information about a collection.
-
The unique identifier of the collection.
Declaration
Swift
public var id : Int
-
The title of the collection.
Declaration
Swift
public var title : String?
-
Date when the collection was published.
Declaration
Swift
public var publishedDate : Date?
-
Date when the collection was last updated.
Declaration
Swift
public var updatedDate : Date?
-
Boolean value indicating whether the collection is curated.
Declaration
Swift
public var isCurated : Bool
-
Cover photo of the collection.
Declaration
Swift
public var coverPhoto : UNPhoto?
-
User that owns the collection.
Declaration
Swift
public var user : UNUser
-
Creates a new instance by decoding from the given decoder.
Throws
If a value that is non-optional is missing the function will throw.Declaration
Swift
public init(from decoder: Decoder) throws
Parameters
decoder
Swift’s decoder.
-
Returns a Boolean value indicating whether the two collections represent the same collection.
Discussion: Two collections are considered to be the same if they represent the same collection; that is, if they have the same id, regardless if the other variables are different.
Declaration
Swift
public static func ==(lhs: UNCollection, rhs: UNCollection) -> Bool
-
Returns a Boolean value indicating whether two collections don’t represent the same collection.
Declaration
Swift
public static func !=(lhs: UNCollection, rhs: UNCollection) -> Bool