PCFEnvironmentSwitcherTableViewMenu

public struct PCFEnvironmentSwitcherTableViewMenu: EnvironmentSwitcherMenu

PCF environment switcher debug menu table view.

  • The display name for the menu option.

    Declaration

    Swift

    public let title: String
  • The value for the option. This will be displayed as the subtitle in the menu.

    Declaration

    Swift

    public let subtitle: String?
  • The value for the option. This will be displayed as the subtitle in the menu.

    Declaration

    Swift

    public var displayItems: [YoshiTableViewMenuItem]
  • The value for the option. This will be displayed as the subtitle in the menu.

    Declaration

    Swift

    public var didSelectDisplayItem: (_ displayItem: YoshiTableViewMenuItem) -> Void
  • Initializes an environment switcher table view.

    • Parameters:
      • title: The table view title.
      • subtitle: The table view subtitle.
      • displayItems: The items to display in the table view.
      • didSelectDisplayItem: Function to be called when an item is selected.

    Declaration

    Swift

    public init(title: String,
                    subtitle: String?,
                    displayItems: [YoshiTableViewMenuItem],
                    didSelectDisplayItem: @escaping (_ displayItem: YoshiTableViewMenuItem) -> Void)

    Parameters

    title

    The table view title.

    subtitle

    The table view subtitle.

    displayItems

    The items to display in the table view.

    didSelectDisplayItem

    Function to be called when an item is selected.