Cannot find 'CharacterDetail' in scope - IntentHandler.swift

This last part of Widgets Code-along was great, and resulted in lots of questions.

The first of which is why Swift cannot find CharacterDetail from the IntentHandler? Swift didn't have a problem prior to creating IntentHandler finding CharacterDetail. My code has been building all along but I have noticed a target that appears in the example code that does not appear in my code. A target called CharacterDetailExtension seems very conspicuous, but Izzy didn't mention anything about the creation of it. Nevertheless, it would be interesting to know why CharacterDetail is suddenly out-of-scope?

And what is the CharacterDetailExtension target and how is is created?

Add target membership "EmojiRangerIntentHandler" to CharacterDetail.swift.

Cannot find 'CharacterDetail' in scope - IntentHandler.swift
 
 
Q