---
title: "init(_:content:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/slidertickcontentforeach/init(_:content:)"
---

# init(_:content:)

Creates an instance that uniquely identifies and creates slider ticks across updates based on the identity of the underlying data.

## Declaration

```swift
nonisolated init<V>(_ data: Data, @SliderTickBuilder<V> content: @escaping (Data.Element) -> Content) where ID == V.ID, V : Identifiable, V == Data.Element, Data.Element == Content.Value
```

## Parameters

- `data`: The identified data that the doc://com.apple.SwiftUI/documentation/SwiftUI/ForEach instance uses to create slider ticks dynamically.
- `content`: The builder that creates ticks dynamically for each element.
