Contents

init(_:symbolName:numberOfIndexes:)

Creates a control to pick a value from the specified number of indexes.

Declaration

init(_ localizedTitle: String, symbolName: String, numberOfIndexes: Int)

Parameters

  • localizedTitle:

    A localized title that describes the picker’s action.

  • symbolName:

    The name of the symbol from the SF Symbols library to use to represent this control.

  • numberOfIndexes:

    The number of indexes to pick between. This value must be greater than 0.

Discussion

Create a picker with this initializer when the control’s values don’t require titles.

See Also

Creating an index picker