I added an Intent Extension Target to my project and I'm trying to distinguish which widget type is displayed during edit mode in IntentHandler and based on this information I want to populate the "Edit Widget" list with small, medium or large widget types.
When I use @Environment(\.widgetFamily) var family it gives me .systemMedium all the time but I'm editing a large size of widget at that time.
For ex; When I long-press a small widget to edit and select another widget type from the list, and I see a list full of items containing small, medium, and large widget types from IntentHandler but I want to see only small types.
The question is that possible to fill the list depending on which type of widget that I'm currently editing?