Config
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
See more
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Inserts the provided
IConfigLayerat the top of the layer stack (meaning its value for a given key will be preferred to those from other layers whenever possible). The index must be >= startIndex and <= endIndex or a precondition will fail.Declaration
Swift
public mutating func pushLayer(layer:IConfigLayer)Parameters
layerThe
IConfigLayerto insert.indexThe index where insertion should take place.
-
Removes the top IConfigLayer from the stack of layers and returns it.
Declaration
Swift
public mutating func popLayer() -> IConfigLayer?Return Value
The removed element or
nilif the stack is empty. -
Inserts the provided
IConfigLayernpositions from the top of the stack. The index must be >= startIndex and <= endIndex or a precondition will fail.Declaration
Swift
public mutating func insertLayer(layer:IConfigLayer, atIndex index:UnderlyingStackType.Index)Parameters
layerThe
IConfigLayerto insert.indexThe index where insertion should take place.
-
Removes the IConfigLayer
npositions from the top of the stack and returns it.indexmust be a valid index or a precondition assertion will fail.Declaration
Swift
public mutating func removeLayerAtIndex(index:UnderlyingStackType.Index) -> IConfigLayerParameters
indexThe index of the element to remove.
Return Value
The removed element.
-
Undocumented
-
Undocumented
See more
View on GitHub
Config Extension Reference