Files
NearFuture/NearFutureWidgets/NearFutureWidgetsBundle.swift
neon443 96250e01c3 forgot to commit 2.0, but just finished 3.0
3.0:
home screen widgets small,med,large
they auto refresh!
major bug fixes inclluding past date handling
past dates are now allowed
2.0:
icloud sync
ios required is 15, down from 18!
auto icloud sync
added icloud settings to manually push,pull or sync
2025-01-03 21:12:44 +00:00

32 lines
723 B
Swift

//
// NearFutureWidgetsBundle.swift
// NearFutureWidgets
//
// Created by Nihaal Sharma on 02/01/2025.
//
import WidgetKit
import SwiftUI
//@main
//struct NearFutureWidgetsBundle: WidgetBundle {
// var body: some Widget {
// NearFutureWidgets()
// NearFutureWidgetsLiveActivity()
// }
//}
@main
struct NearFutureWidget: Widget {
let kind: String = "NearFutureWidget"
var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: EventWidgetProvider()) { entry in
EventWidgetView(entry: entry)
}
.configurationDisplayName("Upcoming Events Widget")
.description("Displays your upcoming events.")
.supportedFamilies([.systemSmall, .systemMedium, .systemLarge])
}
}