Created
July 12, 2020 18:15
-
-
Save apatronl/ca10c14927178f287fe5739cf13800db 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]) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment