Created
July 15, 2020 03:33
-
-
Save apatronl/dec78694d8ca25f49b39a5da325a7bdf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
@main | |
struct Emojibook_Widget: Widget { | |
private let kind: String = "Emojibook_Widget" | |
public var body: some WidgetConfiguration { | |
StaticConfiguration( | |
kind: kind, | |
provider: Provider(), | |
placeholder: PlaceholderView() | |
) { entry in | |
Emojibook_WidgetEntryView(entry: entry) | |
} | |
.configurationDisplayName("Random Emoji") | |
.description("Display a widget with an emoji that is updated randomly.") | |
.supportedFamilies([.systemSmall, .systemMedium, .systemLarge]) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment