init(_:content:)
Creates an instance that uniquely identifies and creates slider ticks across updates based on the identity of the underlying data.
Declaration
nonisolated init<V>(_ data: Data, @SliderTickBuilder<V> content: @escaping (Data.Element) -> Content) where ID == V.ID, V : Identifiable, V == Data.Element, Data.Element == Content.ValueParameters
- data:
The identified data that the Foreach instance uses to create slider ticks dynamically.
- content:
The builder that creates ticks dynamically for each element.