AssetIndexIDTracker

struct AssetIndexIDTracker

Undocumented

  • The dictionary relating the index of the asset fetch request to a UUID of the image.

    Todo

    make private

    Declaration

    Swift

    var requestIndexToUUID: [Int : String]
  • The dictionary relating the index of the image in the user’s library to the asset fetch request.

    Todo

    make private

    Declaration

    Swift

    var indexPathToRequestIndex: [Int : Int]
  • An array of Int containing the asset fetch request IDs that have not been deleted.

    Todo

    make private

    Declaration

    Swift

    var didNotDeleteAtRequestIndex: [Int]
  • Retrieve the UUID for an image at an index in the user’s library.

    Declaration

    Swift

    func uuidFrom(indexPathItem: Int) -> String?

    Parameters

    indexPathItem

    The index of the image in the user’s library.

  • Get all UUIDs for the images selected by the user.

    Declaration

    Swift

    func allUUIDs() -> [String]?

    Return Value

    An array of String if any UUIDs exist, else nil

  • Add an UUID for an ID from an asset fetch request.

    Declaration

    Swift

    mutating func add(uuid: String, withRequestIndex requestIndex: Int)

    Parameters

    uuid

    A string of a UUIDobject.

    requestIndex

    The ID returned for a asset fetch request.

  • Add an ID from an asset fetch request for the index of the image in the user’s library.

    Declaration

    Swift

    mutating func add(requestIndex: Int, withIndexPathItem indexPathItem: Int)

    Parameters

    requestIndex

    The ID returned for a asset fetch request.

    indexPathItem

    The index of the image in the user’s library.

  • Reset the asset tracker object.

    Declaration

    Swift

    mutating func reset()