Using xcode 13.4 on MacOS with Monterey 12.4. while developing widget, compile error shows "Cannot find type 'WidgetFamily' in scope". Any solution?
Cannot find type 'WidgetFamily' in scope
You need to import WidgetKit
.
If you haven't fixed this already, remove : WidgetFamily
from that line. You don't need it.