Array
extension Array where Element == MacOS_ControllerList_Protocol
-
Adds a screen to our Array. If it is already there, nothing happens.
Declaration
Swift
mutating func addScreen(_ inScreen: MacOS_ControllerList_Protocol)Parameters
inScreenThe screen we want added.
-
Removes the given screen from our Array.
Declaration
Swift
mutating func removeScreen(_ inScreen: MacOS_ControllerList_Protocol)Parameters
inScreenThe screen we want removed.
-
This subscript allows us to fetch an instance by its String key.
Declaration
Swift
subscript(inKey: String) -> Element? { get }Parameters
inKeyThe String, with the unique key for the screen.
View on GitHub
Array Extension Reference