Skip to content

Commit a31b4b4

Browse files
author
Christian Elies
committed
fix(): added id to for each
1 parent a653a0e commit a31b4b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/TVDatePicker/API/TVDatePicker.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private extension TVDatePicker {
204204
.font(.subheadline)
205205

206206
Picker(selection: $selectedHour.onChange(didChangeHour), label: Text("Hour")) {
207-
ForEach(hours) { hour in
207+
ForEach(hours, id: \.self) { hour in
208208
Text("\(hour)")
209209
.tag(hour)
210210
}

0 commit comments

Comments
 (0)