mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-02-03 02:37:37 +01:00
Show widget in bundle (IOS-37)
This commit is contained in:
parent
96b432346c
commit
4adf58015c
@ -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)
|
||||
}
|
||||
}
|
||||
|
@ -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")
|
||||
|
@ -9,5 +9,6 @@ struct WidgetExtensionBundle: WidgetBundle {
|
||||
FollowersCountWidget()
|
||||
MultiFollowersCountWidget()
|
||||
LatestFollowersWidget()
|
||||
HashtagWidget()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user