Widgets code-along sample code

So I'm working on session 10034 (widgets code along part 1) and the sample code is different from what's appearing in the video. Immediately one file in the Data folder is missing (GameManager.swift) and the automatically generated code for the widget is different from what the video shows (intents are used instead of static configurations).

Am I missing something here? This makes it a bit difficult to complete the session.

Thanks!
Answered by Micrograx in 615118022
Yeah, I noticed the file missing. But it doesn’t seem to make a difference. At least in the first 2 parts.

the intent vs static configuration has too do on a checkbox when you add the widget target. You must have had it checked and that’s why you have an IntentConfiguration vs an StaticConfiguration
Accepted Answer
Yeah, I noticed the file missing. But it doesn’t seem to make a difference. At least in the first 2 parts.

the intent vs static configuration has too do on a checkbox when you add the widget target. You must have had it checked and that’s why you have an IntentConfiguration vs an StaticConfiguration
Ah, must've missed that. Thanks!
Same thing happened to me, the Xcode 12 beta has "Include Configuration Intent" checked by default when you go to add a new widget target. In the video, he has it unchecked. Unchecking it when creating the target allowed me to follow along with Part 1 of the code along video. Thanks for the help!
Fix discussed in another thread. You have to make sure to uncheck 'Include Configuration Intent' when adding the new the Widget Extension target.
Ensure that "Include Configuration Intent" is unticked, AND, ensure that the "Project" and "Embed in Application" drop-downs are both set to Emoji Rangers.
Widgets code-along sample code
 
 
Q