It seems that WidgetBundle
has a maximum number limit, if it exceeds 5, a compile error will be reported: Extra argument in call
.
But I have not seen such a description in any document, and no other developers mentioned this issue.
Does anyone have an idea?
@main
struct WidgetsBundle: WidgetBundle {
@WidgetBundleBuilder
var body: some Widget {
Widget1()
Widget2()
Widget3()
Widget4()
Widget5()
Widget6() // Extra argument in call
}
}