ios – Why there are duplicated widgets in widgets gallery?

0
122


I simply have 6 widgets for my app. And they are displayed as a bundle simple way like this:

@main
struct FirstWidgetBundle: WidgetBundle {
    @WidgetBundleBuilder
    var body: some Widget {
        CurrentMonth()
        WidgetComing()
        WidgetDailyText()
        WidgetOfficialSite()
        SecondWidgetBundle().body
    }
}

struct SecondWidgetBundle: WidgetBundle {
    @WidgetBundleBuilder
    var body: some Widget {
        WidgetLatestNews()
        WidgetLatestVideos()
    }
}

And inside gallery they are displayed multiply times (exactly four times each of them). Why? There should be 18 options (6 widgets x 3 sizes) but there is 18 x 4 = 72. They are duplicated in gallery for ios 14 widgets as well as for ios 16 widgets. Why? Is it ios bug or my implementation is wrong?

Each of my six widget is different app extension with different bundle id, the same app group. All swift files in every extension are targeted to everyone. Why it matters if it does?