You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Apple Dev Tutorial
// iOS App Developer: Displaying Data in a list
// ScrumView.swift
// Scrumdinger
//
// Created by Michael Derosier on 7/14/21.
//
import SwiftUI
struct ScrumView: View {
let scrums: [DailyScrum]
var body: some View {
List {
ForEach(scrums) {
scrum in CardView(scrum: scrum) .listRowBackground(scrum.color)
}
}
}
}
struct ScrumView_Previews: PreviewProvider {
static var previews: some View {
ScrumView(scrums: DailyScrum.data)
}
}
The text was updated successfully, but these errors were encountered:
Could you please make the example self-contained? Right now, it's missing definitions for multiple types. If I add definitions for those types, I see the code compile fine.
If this is the exact code which gives you the issue, please try verifying with Xcode 13 beta, it should give you proper errors for types not being in scope.
Environment
Xcode 12.5
Compile ScrumView.swift (x86_64):
Additional Detail from JIRA
md5: e3369e7a6f57efa563d8e703fb37e989
Issue Description:
// Apple Dev Tutorial
// iOS App Developer: Displaying Data in a list
// ScrumView.swift
// Scrumdinger
//
// Created by Michael Derosier on 7/14/21.
//
import SwiftUI
struct ScrumView: View {
let scrums: [DailyScrum]
var body: some View {
List {
ForEach(scrums) {
scrum in CardView(scrum: scrum) .listRowBackground(scrum.color)
}
}
}
}
struct ScrumView_Previews: PreviewProvider {
static var previews: some View {
ScrumView(scrums: DailyScrum.data)
}
}
The text was updated successfully, but these errors were encountered: