Making dynamic widgets in WidgetBundle

I want to make an application where the user can add as many Widgets as they want. So I need to define dynamic widgets in WidgetBundle.

I tried this code the below but error appears:

@WidgetBundleBuilder

    var body: some Widget {

        List {

            ForEach(0..<2) { _ in

                CalendarWidget()

            }

        }

    }

Is there any way to do dynamic widgets?

Making dynamic widgets in WidgetBundle
 
 
Q