Skip to content

Instantly share code, notes, and snippets.

@dimebt
Created September 8, 2020 15:33
Show Gist options
  • Save dimebt/b5b86adc3a72648cda0d9b764204ff72 to your computer and use it in GitHub Desktop.
Save dimebt/b5b86adc3a72648cda0d9b764204ff72 to your computer and use it in GitHub Desktop.
@main
struct WalletWidget: Widget {
private let kind: String = "WalletWidget"
public var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: Provider()) { entry in
WalletWidgetEntryView(entry: entry)
}
.configurationDisplayName("Wallet Widget")
.description("Description for the Wallet app widget.")
.supportedFamilies([.systemSmall, .systemMedium, .systemLarge])
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment