mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 14:56:15 +00:00
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
This commit is contained in:
31
NearFutureWidgets/NearFutureWidgetsBundle.swift
Normal file
31
NearFutureWidgets/NearFutureWidgetsBundle.swift
Normal file
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// 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])
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user