Contents

init(_:symbolName:localizedIndexTitles:)

Creates an object to select an index from a set of values.

Declaration

init(_ localizedTitle: String, symbolName: String, localizedIndexTitles: [String])

Parameters

  • localizedTitle:

    A localized title that describes the control’s action.

  • symbolName:

    The name of an SF Symbol that represents the control.

  • localizedIndexTitles:

    The titles to use for each index. The array must not be empty.

Discussion

Create a picker with this initializer when you already have an array containing a title for each picked value.

See Also

Creating an index picker