Contents

init(_:symbolName:in:step:)

Creates a discrete slider control that selects a stepped value from a bounded range.

Declaration

@nonobjc convenience init(_ localizedTitle: String, symbolName: String, in range: ClosedRange<Float>, step: Float)

Parameters

  • localizedTitle:

    A localized title that describes the slider’s action.

  • symbolName:

    A symbol name from the SF Symbols library.

  • range:

    A bounded range of floating point values.

  • step:

    The distance between each valid value. This specified value must be greater than 0 or the system throws an Invalidargumentexception.

Discussion

Use discrete sliders when your use case supports selecting stepped values within the specified range.

See Also

Creating a slider