Show widget in bundle (IOS-37)

This commit is contained in:
Nathan Mattes 2023-03-22 22:05:15 +01:00
parent 96b432346c
commit 4adf58015c
3 changed files with 6 additions and 3 deletions

View File

@ -36,6 +36,8 @@ struct HashtagWidget: Widget {
IntentConfiguration(kind: "Hashtag", intent: HashtagIntent.self, provider: HashtagWidgetProvider()) { entry in
HashtagWidgetView()
}
.configurationDisplayName("Hashtag")
.description("Show a Hashtag")
.supportedFamilies(availableFamilies)
}
}

View File

@ -5,13 +5,13 @@ import SwiftUI
struct HashtagWidgetView: View {
var body: some View {
//TODO: Lockscreen has a different design
HStack {
VStack {
VStack {
HStack {
Text("Username")
Text("@user@mastodon.social")
}
Text("Toot")
VStack {
HStack {
Image(systemName: "arrow.2.squarepath")
Text("Reblog Count")
Image(systemName: "star")

View File

@ -9,5 +9,6 @@ struct WidgetExtensionBundle: WidgetBundle {
FollowersCountWidget()
MultiFollowersCountWidget()
LatestFollowersWidget()
HashtagWidget()
}
}