18 lines
561 B
Swift
18 lines
561 B
Swift
import WidgetKit
|
|
import SwiftUI
|
|
|
|
@main
|
|
struct AndromidaWidget: Widget {
|
|
let kind: String = "AndromidaWidget"
|
|
|
|
var body: some WidgetConfiguration {
|
|
AppIntentConfiguration(kind: kind, intent: ConfigurationAppIntent.self, provider: AndromidaWidgetProvider()) { entry in
|
|
AndromidaWidgetView(entry: entry)
|
|
}
|
|
.configurationDisplayName("Andromida")
|
|
.description("Track your daily rituals and habits.")
|
|
.supportedFamilies([.systemSmall, .systemMedium, .systemLarge])
|
|
.contentMarginsDisabled()
|
|
}
|
|
}
|