mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 06:49:12 +00:00
animations!!!!!!!!! on add, delete and ticking yayy sorts on load extract contentview to HomeView, its got too indented loll
32 lines
717 B
Swift
32 lines
717 B
Swift
//
|
|
// NearFutureWidgetsBundle.swift
|
|
// NearFutureWidgets
|
|
//
|
|
// Created by neon443 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])
|
|
}
|
|
}
|