STRUCT
public struct IdiomAppIconSpecMap: IdiomAppIconSpecProvider
Returns the list of
AssetSpecificationProtocol
based on theImageIdiom
using aDictionary
public let dictionary: [ImageIdiom: [AssetSpecificationProtocol]]
The
[ImageIdiom: [AssetSpecificationProtocol]]
Dictionary to baseAssetSpecificationProtocol
on.
public init(dictionary: [ImageIdiom: [AssetSpecificationProtocol]]? = nil)
Creates a
IdiomAppIconSpecMap
based on the[ImageIdiom: [AssetSpecificationProtocol]]
Dictionary passed.
- Parameter dictionary: The optional
[ImageIdiom: [AssetSpecificationProtocol]]
to use. Otherwise base it on whatAppIconMasterDocumentProvider
provides.
Name | Description |
---|---|
dictionary | The optional [ImageIdiom: [AssetSpecificationProtocol]] to use. Otherwise base it on what AppIconMasterDocumentProvider provides. |
public func appIcon(specificationFor idiom: ImageIdiom) -> [AssetSpecificationProtocol]
Returns the list of
AssetSpecificationProtocol
based on theImageIdiom
using aDictionary
. Otherwise returns an empty array.
- Parameter idiom: The
ImageIdiom
.- Returns: An
Array<AssetSpecificationProtocol>
based on the dictionary, otherwise an empty array.
Name | Description |
---|---|
idiom | The ImageIdiom . |