Updating App Data - iOS Tutorial - Step 7

In the Scrumdinger iOS tutorial, Step 7 of Updating app data asks you to create a new DailyScrum using the newScrumData by passing the following in:

let newScrum = DailyScrum(data: newScrumData)

However, I receive the following errors because I don't believe the initializer for DailyScrum is set up to accept "data" as an argument:

Extra argument 'data' in call Missing arguments for parameters 'title', 'attendees', 'lengthInMinutes', 'theme' in call

Can someone help me to understand what I'm doing wrong? Shouldn't there be an initializer in DailyScrum to accept "data" as an argument if I were to want to do it this way? I checked the completed project provided by Apple and the error is still there even in that project, so I'm wondering if there's a step missing in the tutorial

I should've waited to post and looked a little more. I downloaded the completed project for the next section - Persisting Data - and it had the initializer for DailyScrum using Data only. This is what I suspected I needed to do, but since it hadn't been mentioned up to that point in the tutorial, I was second guessing myself. Maybe something for Apple to look at adding in the next update of the tutorial, as it was super confusing.

Unfortunately this tutorial is confusing and what is in the complete project (that works) is not what is presented in the course. You should file a bug report.

Could you tell me what the issue was and how you solved it, because I downloaded the completed file of the next chapter and it's exactly like my code and I still get these errors

init(data: Data) {         id = UUID()         title = data.title         attendees = data.attendees         lengthInMinutes = Int(data.lengthInMinutes)         theme = data.theme     }

Add this to your DailyScrum model within the "extension DailyScrum". Basically you're trying to use an initializer that doesn't exist within DailyScrum, and I only picked up on this by looking at the next section's completed project. As soon as I added this, everything worked fine.

Updating App Data - iOS Tutorial - Step 7
 
 
Q