Skip to content

Instantly share code, notes, and snippets.

@GabrielTargon
Created January 10, 2023 23:14
Show Gist options
  • Save GabrielTargon/544e10bbb864d7bc0eadb2f237a397de to your computer and use it in GitHub Desktop.
Save GabrielTargon/544e10bbb864d7bc0eadb2f237a397de to your computer and use it in GitHub Desktop.
How to add infinite widgets on iOS
@main
struct WidgetBundle: WidgetBundle {
var body: some Widget {
MyWidgetOne()
MyWidgetTwo()
MyWidgetThree()
MyWidgetFour()
WidgetBundleTwo().body
}
}
struct WidgetBundleTwo: WidgetBundle {
var body: some Widget {
MyWidgetFive()
MyWidgetSix()
MyWidgetSeven()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment