DKDirectory
public struct DKDirectory
Encaspulates (and validates) a directory destination
-
The unique identifier of the destination collection
Declaration
Swift
public var collectionID: NSNumber -
The unique identifier of the destination stack, if available
Declaration
Swift
public var stackID: NSNumber? -
Create a destination aimed at a specific collection and stack
Throws
Returns an error if the provided stack item is not a
DKItemType.stackDeclaration
Swift
public init(collection: DKCollection, stack: DKItem? = nil) throws -
Create a destination aimed at a specific collection and stack
Declaration
Swift
public init(collectionID: NSNumber, stackID: NSNumber? = nil)Parameters
collectionIDThe unique identifier of the destination collection
stackIDThe unique identifier of the destination stack
View on GitHub
Install in Dash
DKDirectory Structure Reference