Post

Replies

Boosts

Views

Activity

Reply to Stuck in the SwiftUI Tutorial by Apple in Chapter 5 (Updating App data)
This error you are seeing is because the you are missing arguments from the DailyScrum initialiser. When you call DailyScrum(data: …), you are trying to call the initialiser for daily scrum that would look like: init(data: Data) { … } But this doesn’t exist in your code (you might’ve missed it from the tutorial?). The only initialiser for the DailyScrum struct in your code is init(id: UUID = UUID(), title: String, attendees: [String], lengthInMinutes: Int, theme: Theme) { … } So you would need to use this list of arguments to initialise that struct instead. I have not seen the tutorial but it looks like you might’ve forgotten to copy some bits or maybe missed a step - hope this helps!
Aug ’22