Array

extension Array where Element == MacOS_ControllerList_Protocol

Available 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

    inScreen

    The screen we want added.

  • Removes the given screen from our Array.

    Declaration

    Swift

    mutating func removeScreen(_ inScreen: MacOS_ControllerList_Protocol)

    Parameters

    inScreen

    The screen we want removed.

  • This subscript allows us to fetch an instance by its String key.

    Declaration

    Swift

    subscript(inKey: String) -> Element? { get }

    Parameters

    inKey

    The String, with the unique key for the screen.