mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 14:56:15 +00:00
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
32 lines
723 B
Swift
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])
|
|
}
|
|
}
|