Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.51 KB

IdiomAppIconSpecMap.md

File metadata and controls

53 lines (37 loc) · 1.51 KB

STRUCT

IdiomAppIconSpecMap

public struct IdiomAppIconSpecMap: IdiomAppIconSpecProvider

Returns the list of AssetSpecificationProtocol based on the ImageIdiom using a Dictionary

Properties

dictionary

public let dictionary: [ImageIdiom: [AssetSpecificationProtocol]]

The [ImageIdiom: [AssetSpecificationProtocol]] Dictionary to base AssetSpecificationProtocol on.

Methods

init(dictionary:)

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 what AppIconMasterDocumentProvider provides.

Parameters

Name Description
dictionary The optional [ImageIdiom: [AssetSpecificationProtocol]] to use. Otherwise base it on what AppIconMasterDocumentProvider provides.

appIcon(specificationFor:)

public func appIcon(specificationFor idiom: ImageIdiom) -> [AssetSpecificationProtocol]

Returns the list of AssetSpecificationProtocol based on the ImageIdiom using a Dictionary. Otherwise returns an empty array.

  • Parameter idiom: The ImageIdiom.
  • Returns: An Array<AssetSpecificationProtocol> based on the dictionary, otherwise an empty array.

Parameters

Name Description
idiom The ImageIdiom.