Skip to content

Commit

Permalink
Fixed For Each Display Array Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
markydoodled committed Apr 29, 2024
1 parent 550d6de commit 2009cb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source Code/Next Up/Next Up/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ struct ContentView: View {
@State private var timesList: [String] = []
var body: some View {
Section {
ForEach(eventsList, id: \.count) { event in
ForEach(Array(zip(eventsList, timesList)), id: \.0) { item in
HStack {
Text("\(timesList.formatted()) - \(eventsList.formatted())")
Text("\(item.1) - \(item.0)")
}
}
} header: {
Expand Down

0 comments on commit 2009cb7

Please sign in to comment.