Compare commits
87 Commits
feat-notif
...
b7ef7b4e19
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7ef7b4e19 | ||
|
|
7727f14ad4 | ||
|
|
e4107a2faa | ||
|
|
5ec16dd67a | ||
|
|
0cffe243eb | ||
|
|
6533fb85ed | ||
|
|
5c667679d5 | ||
|
|
5dd25f1ede | ||
|
|
d80011ea27 | ||
|
|
a40d4f4300 | ||
|
|
22af9fc060 | ||
|
|
2dd2c51059 | ||
|
|
4c9e72fad2 | ||
|
|
cb26c69492 | ||
|
|
13ef94ea3e | ||
|
|
6e5b7adbc4 | ||
|
|
659f14d5a3 | ||
|
|
0663ba9e59 | ||
|
|
6e7bc6c2d1 | ||
|
|
3f21074091 | ||
|
|
ee2e05c523 | ||
|
|
e9e19e2659 | ||
|
|
5ce48a4bc2 | ||
|
|
a7e09692f6 | ||
|
|
559f891719 | ||
|
|
2ef000458f | ||
|
|
d5580e52f5 | ||
|
|
84a7091e05 | ||
|
|
69047010d7 | ||
|
|
dfb1dae545 | ||
|
|
0f3b86fe8c | ||
|
|
1902c5102c | ||
|
|
1179810ac2 | ||
|
|
dfc3a9290a | ||
|
|
7236f0640e | ||
|
|
44b40894e4 | ||
|
|
e4842bd29a | ||
|
|
b378a831be | ||
|
|
2ff96a7093 | ||
|
|
4f5e31a6f3 | ||
|
|
266b27d817 | ||
|
|
d1c1144ad8 | ||
|
|
bcfe23a17e | ||
|
|
74ef5db2cf | ||
|
|
389fdf6812 | ||
|
|
b153d127a6 | ||
|
|
62318c5ddc | ||
|
|
773a083682 | ||
|
|
e051d73b7e | ||
|
|
4bf33d50d6 | ||
|
|
74603cc588 | ||
|
|
ed016217db | ||
|
|
a64eb03cad | ||
|
|
7c7f72a5d4 | ||
|
|
831305ba55 | ||
|
|
69856e2857 | ||
|
|
7be2e3848a | ||
|
|
db05da3043 | ||
|
|
940a8f4ebd | ||
|
|
48071c0791 | ||
|
|
3a94dc7675 | ||
|
|
08bf56ecbd | ||
|
|
008eecb52c | ||
|
|
c640c77600 | ||
|
|
e9d49cc137 | ||
|
|
565341c3d0 | ||
|
|
f9c50df47f | ||
|
|
bb598250a6 | ||
|
|
c7fddda601 | ||
|
|
033a01463f | ||
|
|
87209f38f3 | ||
|
|
7c852fc8ec | ||
|
|
73b3d9b234 | ||
|
|
0a17ec6292 | ||
|
|
bb67b0ce98 | ||
|
|
82341f40ef | ||
|
|
f9f030c8b3 | ||
|
|
3ca5017b61 | ||
|
|
0efcc9e183 | ||
|
|
595c2b74c5 | ||
|
|
f252359eb1 | ||
|
|
2b266e03ca | ||
|
|
c935d4b1f0 | ||
|
|
c82ce5fa17 | ||
|
|
7bef3bc4e6 | ||
|
|
025dbf22cd | ||
|
|
da65c3ac69 |
@@ -12,6 +12,6 @@ TEAM_ID = 8JGND254B7
|
|||||||
BUNDLE_ID = com.neon443.NearFuture
|
BUNDLE_ID = com.neon443.NearFuture
|
||||||
BUNDLE_ID_WIDGETS = com.neon443.NearFuture.widgets
|
BUNDLE_ID_WIDGETS = com.neon443.NearFuture.widgets
|
||||||
GROUP_ID = group.NearFuture
|
GROUP_ID = group.NearFuture
|
||||||
VERSION = 4.0.0
|
VERSION = 5
|
||||||
NAME = Near Future
|
NAME = Near Future
|
||||||
BUILD_NUMBER = 0
|
BUILD_NUMBER = 1
|
||||||
|
|||||||
40
MacNearFuture/AboutView.swift
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
//
|
||||||
|
// AboutView.swift
|
||||||
|
// MacNearFuture
|
||||||
|
//
|
||||||
|
// Created by neon443 on 28/05/2025.
|
||||||
|
//
|
||||||
|
|
||||||
|
import SwiftUI
|
||||||
|
|
||||||
|
struct AboutView: View {
|
||||||
|
var body: some View {
|
||||||
|
VStack(alignment: .center) {
|
||||||
|
Image(nsImage: #imageLiteral(resourceName: "NearFutureIcon.png"))
|
||||||
|
.resizable()
|
||||||
|
.scaledToFit()
|
||||||
|
.frame(width: 100)
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 25))
|
||||||
|
Text("Near Future")
|
||||||
|
.bold()
|
||||||
|
.monospaced()
|
||||||
|
.font(.title)
|
||||||
|
Text("Version " + getVersion() + " (\(getBuildID()))")
|
||||||
|
.padding(.bottom)
|
||||||
|
Text("© 2024-2025 neon443, Inc")
|
||||||
|
.padding(.bottom)
|
||||||
|
Link("Developer Website", destination: URL(string: "https://neon443.xyz")!)
|
||||||
|
}
|
||||||
|
.padding()
|
||||||
|
.padding()
|
||||||
|
.containerBackground(.ultraThinMaterial, for: .window)
|
||||||
|
.toolbar(removing: .title)
|
||||||
|
.toolbarBackground(.hidden, for: .windowToolbar)
|
||||||
|
.windowMinimizeBehavior(.disabled)
|
||||||
|
.windowFullScreenBehavior(.disabled)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#Preview {
|
||||||
|
AboutView()
|
||||||
|
}
|
||||||
18
MacNearFuture/MacNearFuture.entitlements
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>com.apple.developer.icloud-container-identifiers</key>
|
||||||
|
<array/>
|
||||||
|
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
|
||||||
|
<string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string>
|
||||||
|
<key>com.apple.security.app-sandbox</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.application-groups</key>
|
||||||
|
<array>
|
||||||
|
<string>group.NearFuture</string>
|
||||||
|
</array>
|
||||||
|
<key>com.apple.security.files.user-selected.read-only</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
72
MacNearFuture/MacNearFutureApp.swift
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
//
|
||||||
|
// MacNearFutureApp.swift
|
||||||
|
// MacNearFuture
|
||||||
|
//
|
||||||
|
// Created by neon443 on 21/05/2025.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Foundation
|
||||||
|
import SwiftUI
|
||||||
|
|
||||||
|
@main
|
||||||
|
struct NearFutureApp: App {
|
||||||
|
@Environment(\.openWindow) var openWindow
|
||||||
|
@StateObject var viewModel: EventViewModel = EventViewModel()
|
||||||
|
@StateObject var settingsModel: SettingsViewModel = SettingsViewModel()
|
||||||
|
|
||||||
|
var body: some Scene {
|
||||||
|
WindowGroup {
|
||||||
|
ContentView(
|
||||||
|
viewModel: viewModel,
|
||||||
|
settingsModel: settingsModel
|
||||||
|
)
|
||||||
|
}
|
||||||
|
.defaultSize(width: 550, height: 650)
|
||||||
|
.commands {
|
||||||
|
CommandGroup(replacing: CommandGroupPlacement.appInfo) {
|
||||||
|
Button("About Near Future") {
|
||||||
|
openWindow(id: "about")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
NearFutureCommands()
|
||||||
|
}
|
||||||
|
|
||||||
|
WindowGroup("Edit Event", for: Event.ID.self) { $eventID in
|
||||||
|
if viewModel.events.first(where: {$0.id == eventID}) == nil {
|
||||||
|
AddEventView(
|
||||||
|
viewModel: viewModel
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
EditEventView(
|
||||||
|
viewModel: viewModel,
|
||||||
|
event: Binding(
|
||||||
|
get: {
|
||||||
|
viewModel.events.first(where: {$0.id == eventID}) ?? viewModel.template
|
||||||
|
},
|
||||||
|
set: { newValue in
|
||||||
|
viewModel.editEvent(newValue)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.defaultSize(width: 480, height: 550)
|
||||||
|
.windowIdealSize(.fitToContent)
|
||||||
|
.restorationBehavior(.disabled)
|
||||||
|
|
||||||
|
Window("About Near Future", id: "about") {
|
||||||
|
AboutView()
|
||||||
|
}
|
||||||
|
.windowBackgroundDragBehavior(.enabled)
|
||||||
|
.windowResizability(.contentSize)
|
||||||
|
.restorationBehavior(.disabled)
|
||||||
|
.defaultPosition(UnitPoint.center)
|
||||||
|
|
||||||
|
Settings {
|
||||||
|
SettingsView(
|
||||||
|
viewModel: viewModel,
|
||||||
|
settingsModel: settingsModel
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
17
MacNearFuture/NFCommands.swift
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
//
|
||||||
|
// NFCommands.swift
|
||||||
|
// MacNearFuture
|
||||||
|
//
|
||||||
|
// Created by neon443 on 21/05/2025.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Foundation
|
||||||
|
import SwiftUI
|
||||||
|
|
||||||
|
struct NearFutureCommands: Commands {
|
||||||
|
var body: some Commands {
|
||||||
|
CommandGroup(after: CommandGroupPlacement.appInfo) {
|
||||||
|
// Text("hi")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
33
MacNearFuture/Views/ArchiveView.swift
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
//
|
||||||
|
// ArchiveView.swift
|
||||||
|
// MacNearFuture
|
||||||
|
//
|
||||||
|
// Created by neon443 on 28/05/2025.
|
||||||
|
//
|
||||||
|
|
||||||
|
import SwiftUI
|
||||||
|
|
||||||
|
struct ArchiveView: View {
|
||||||
|
@StateObject var viewModel: EventViewModel
|
||||||
|
@StateObject var settingsModel: SettingsViewModel
|
||||||
|
|
||||||
|
var filteredEvents: [Event] {
|
||||||
|
return viewModel.events.filter { $0.complete }
|
||||||
|
}
|
||||||
|
|
||||||
|
var body: some View {
|
||||||
|
ScrollView {
|
||||||
|
ForEach(filteredEvents) { event in
|
||||||
|
EventListView(viewModel: viewModel, event: event)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.scrollContentBackground(.hidden)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#Preview {
|
||||||
|
ArchiveView(
|
||||||
|
viewModel: dummyEventViewModel(),
|
||||||
|
settingsModel: dummySettingsViewModel()
|
||||||
|
)
|
||||||
|
}
|
||||||
88
MacNearFuture/Views/ContentViewMac.swift
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
//
|
||||||
|
// ContentView.swift
|
||||||
|
// MacNearFuture
|
||||||
|
//
|
||||||
|
// Created by neon443 on 21/05/2025.
|
||||||
|
//
|
||||||
|
|
||||||
|
import SwiftUI
|
||||||
|
|
||||||
|
struct ContentView: View {
|
||||||
|
@StateObject var viewModel: EventViewModel
|
||||||
|
@StateObject var settingsModel: SettingsViewModel
|
||||||
|
|
||||||
|
@State private var showAddEventView: Bool = false
|
||||||
|
@State private var symbolSearchInput: String = ""
|
||||||
|
|
||||||
|
var body: some View {
|
||||||
|
NavigationSplitView {
|
||||||
|
List {
|
||||||
|
NavigationLink {
|
||||||
|
HomeView(
|
||||||
|
viewModel: viewModel,
|
||||||
|
settingsModel: settingsModel
|
||||||
|
)
|
||||||
|
} label: {
|
||||||
|
Image(systemName: "house")
|
||||||
|
Text("Home")
|
||||||
|
}
|
||||||
|
NavigationLink {
|
||||||
|
ArchiveView(
|
||||||
|
viewModel: viewModel,
|
||||||
|
settingsModel: settingsModel
|
||||||
|
)
|
||||||
|
} label: {
|
||||||
|
Image(systemName: "tray.full")
|
||||||
|
Text("Archive")
|
||||||
|
}
|
||||||
|
NavigationLink {
|
||||||
|
SymbolsPicker(
|
||||||
|
selection: .constant(""),
|
||||||
|
browsing: true
|
||||||
|
)
|
||||||
|
} label: {
|
||||||
|
Image(systemName: "star.circle")
|
||||||
|
Text("Symbols")
|
||||||
|
}
|
||||||
|
NavigationLink {
|
||||||
|
SettingsView(
|
||||||
|
viewModel: viewModel,
|
||||||
|
settingsModel: settingsModel
|
||||||
|
)
|
||||||
|
} label: {
|
||||||
|
Image(systemName: "gear")
|
||||||
|
Text("Settings")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} detail: {
|
||||||
|
Text("Welcome to Near Future")
|
||||||
|
}
|
||||||
|
.tint(settingsModel.settings.tint.color)
|
||||||
|
.frame(minWidth: 450, minHeight: 550)
|
||||||
|
.containerBackground(.regularMaterial, for: .window)
|
||||||
|
.sheet(isPresented: $settingsModel.settings.showWhatsNew) {
|
||||||
|
WhatsNewView(settingsModel: settingsModel)
|
||||||
|
.presentationSizing(.form)
|
||||||
|
}
|
||||||
|
.sheet(isPresented: $showAddEventView) {
|
||||||
|
AddEventView(
|
||||||
|
viewModel: viewModel
|
||||||
|
)
|
||||||
|
.presentationSizing(.page)
|
||||||
|
}
|
||||||
|
.toolbar {
|
||||||
|
Button() {
|
||||||
|
showAddEventView.toggle()
|
||||||
|
} label: {
|
||||||
|
Label("New", systemImage: "plus")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#Preview {
|
||||||
|
ContentView(
|
||||||
|
viewModel: dummyEventViewModel(),
|
||||||
|
settingsModel: dummySettingsViewModel()
|
||||||
|
)
|
||||||
|
}
|
||||||
50
MacNearFuture/Views/HomeView.swift
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
//
|
||||||
|
// HomeView.swift
|
||||||
|
// MacNearFuture
|
||||||
|
//
|
||||||
|
// Created by neon443 on 28/05/2025.
|
||||||
|
//
|
||||||
|
|
||||||
|
import SwiftUI
|
||||||
|
|
||||||
|
struct HomeView: View {
|
||||||
|
@StateObject var viewModel: EventViewModel
|
||||||
|
@StateObject var settingsModel: SettingsViewModel
|
||||||
|
|
||||||
|
@State private var searchInput: String = ""
|
||||||
|
|
||||||
|
var filteredEvents: [Event] {
|
||||||
|
if searchInput.isEmpty {
|
||||||
|
if settingsModel.settings.showCompletedInHome {
|
||||||
|
return viewModel.events
|
||||||
|
} else {
|
||||||
|
return viewModel.events.filter() { !$0.complete }
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return viewModel.events.filter {
|
||||||
|
$0.name.localizedCaseInsensitiveContains(searchInput) ||
|
||||||
|
$0.notes.localizedCaseInsensitiveContains(searchInput)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var body: some View {
|
||||||
|
ScrollView {
|
||||||
|
ForEach(viewModel.events) { event in
|
||||||
|
if filteredEvents.contains(event) {
|
||||||
|
EventListView(viewModel: viewModel, event: event)
|
||||||
|
.id(event)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.searchable(text: $searchInput)
|
||||||
|
.scrollContentBackground(.hidden)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#Preview {
|
||||||
|
HomeView(
|
||||||
|
viewModel: dummyEventViewModel(),
|
||||||
|
settingsModel: dummySettingsViewModel()
|
||||||
|
)
|
||||||
|
}
|
||||||
155
MacNearFuture/Views/SettingsView.swift
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
//
|
||||||
|
// SettingsView.swift
|
||||||
|
// NearFuture
|
||||||
|
//
|
||||||
|
// Created by neon443 on 13/06/2025.
|
||||||
|
//
|
||||||
|
|
||||||
|
import SwiftUI
|
||||||
|
|
||||||
|
struct SettingsView: View {
|
||||||
|
@ObservedObject var viewModel: EventViewModel
|
||||||
|
@ObservedObject var settingsModel: SettingsViewModel
|
||||||
|
|
||||||
|
@State private var importStr: String = ""
|
||||||
|
|
||||||
|
func changeIcon(to toIcon: String) {
|
||||||
|
if let nsimage = NSImage(named: toIcon) {
|
||||||
|
let nsImageView = NSImageView(image: nsimage)
|
||||||
|
nsImageView.frame = NSRect(x: 0, y: 0, width: 128, height: 128)
|
||||||
|
NSApplication.shared.dockTile.contentView = nsImageView
|
||||||
|
NSApplication.shared.dockTile.display()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var body: some View {
|
||||||
|
NavigationStack {
|
||||||
|
List {
|
||||||
|
ScrollView(.horizontal) {
|
||||||
|
HStack {
|
||||||
|
ForEach(settingsModel.accentChoices, id: \.self) { choice in
|
||||||
|
let color = Color(nsColor: NSColor(named: "uiColors/\(choice)")!)
|
||||||
|
ZStack {
|
||||||
|
Button() {
|
||||||
|
settingsModel.changeTint(to: choice)
|
||||||
|
changeIcon(to: choice)
|
||||||
|
} label: {
|
||||||
|
Circle()
|
||||||
|
.foregroundStyle(color)
|
||||||
|
.frame(width: 30)
|
||||||
|
}
|
||||||
|
.buttonStyle(.plain)
|
||||||
|
if ColorCodable(color) == settingsModel.settings.tint {
|
||||||
|
let needContrast: Bool = ColorCodable(color) == settingsModel.settings.tint
|
||||||
|
Circle()
|
||||||
|
.foregroundStyle(needContrast ? .two : .one)
|
||||||
|
.frame(width: 10)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Button("Show What's New") {
|
||||||
|
settingsModel.settings.showWhatsNew = true
|
||||||
|
}
|
||||||
|
Toggle("Show completed Events in Home", isOn: $settingsModel.settings.showCompletedInHome)
|
||||||
|
.onChange(of: settingsModel.settings.showCompletedInHome) { _ in
|
||||||
|
settingsModel.saveSettings()
|
||||||
|
}
|
||||||
|
NavigationLink() {
|
||||||
|
List {
|
||||||
|
if !settingsModel.notifsGranted {
|
||||||
|
Text("\(Image(systemName: "xmark")) Notifications disabled for Near Future")
|
||||||
|
.foregroundStyle(.red)
|
||||||
|
Button("Request Notifications") {
|
||||||
|
Task.detached {
|
||||||
|
let requestNotifsResult = await requestNotifs()
|
||||||
|
await MainActor.run {
|
||||||
|
settingsModel.notifsGranted = requestNotifsResult
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Text("\(Image(systemName: "checkmark")) Notifications enabled for Near Future")
|
||||||
|
.foregroundStyle(.green)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} label: {
|
||||||
|
Image(systemName: "bell.badge.fill")
|
||||||
|
Text("Notifications")
|
||||||
|
}
|
||||||
|
NavigationLink() {
|
||||||
|
iCloudSettingsView(
|
||||||
|
viewModel: viewModel,
|
||||||
|
settingsModel: settingsModel
|
||||||
|
)
|
||||||
|
} label: {
|
||||||
|
HStack {
|
||||||
|
Image(systemName: "icloud.fill")
|
||||||
|
Text("iCloud")
|
||||||
|
Spacer()
|
||||||
|
Circle()
|
||||||
|
.frame(width: 20, height: 20)
|
||||||
|
.foregroundStyle(viewModel.iCloudStatusColor)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.onAppear {
|
||||||
|
viewModel.sync()
|
||||||
|
viewModel.updateiCStatus()
|
||||||
|
}
|
||||||
|
NavigationLink() {
|
||||||
|
ImportView(viewModel: viewModel, importStr: $importStr)
|
||||||
|
} label: {
|
||||||
|
Label("Import Events", systemImage: "tray.and.arrow.down.fill")
|
||||||
|
.foregroundStyle(.one)
|
||||||
|
}
|
||||||
|
NavigationLink() {
|
||||||
|
ExportView(viewModel: viewModel)
|
||||||
|
} label: {
|
||||||
|
Label("Export Events", systemImage: "square.and.arrow.up")
|
||||||
|
.foregroundStyle(.one)
|
||||||
|
}
|
||||||
|
|
||||||
|
Text("Tip")
|
||||||
|
.font(.subheadline)
|
||||||
|
Text("Near Future has Widgets!")
|
||||||
|
|
||||||
|
Text("Danger Zone")
|
||||||
|
.foregroundStyle(.red)
|
||||||
|
.font(.subheadline)
|
||||||
|
Button("Delete local data", role: .destructive) {
|
||||||
|
viewModel.dangerClearLocalData()
|
||||||
|
}
|
||||||
|
Button("Delete iCloud data", role: .destructive) {
|
||||||
|
viewModel.dangerCleariCloudData()
|
||||||
|
}
|
||||||
|
Button("Delete all data", role: .destructive) {
|
||||||
|
viewModel.dangerClearLocalData()
|
||||||
|
viewModel.dangerCleariCloudData()
|
||||||
|
}
|
||||||
|
|
||||||
|
Text("Debug")
|
||||||
|
.foregroundStyle(.red)
|
||||||
|
.font(.subheadline)
|
||||||
|
Button("Reset UserDefaults", role: .destructive) {
|
||||||
|
viewModel.dangerResetLocalData()
|
||||||
|
}
|
||||||
|
Button("Reset iCloud", role: .destructive) {
|
||||||
|
viewModel.dangerResetiCloud()
|
||||||
|
}
|
||||||
|
|
||||||
|
// AboutView()
|
||||||
|
|
||||||
|
.modifier(navigationInlineLarge())
|
||||||
|
.scrollContentBackground(.hidden)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#Preview {
|
||||||
|
SettingsView(
|
||||||
|
viewModel: dummyEventViewModel(),
|
||||||
|
settingsModel: dummySettingsViewModel()
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -7,11 +7,44 @@
|
|||||||
objects = {
|
objects = {
|
||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
|
A90D49382DDE0FAF00781124 /* ContentViewMac.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90D49332DDE0FAF00781124 /* ContentViewMac.swift */; };
|
||||||
|
A90D493D2DDE10B200781124 /* NearFutureIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = A949F8312DCAAA8A0064DCA0 /* NearFutureIcon.png */; };
|
||||||
|
A90D493E2DDE10CF00781124 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A920C28D2D24011A00E4F9B1 /* Assets.xcassets */; };
|
||||||
|
A90D49422DDE114100781124 /* Events.swift in Sources */ = {isa = PBXBuildFile; fileRef = A920C28B2D24011400E4F9B1 /* Events.swift */; };
|
||||||
|
A90D49442DDE1C7600781124 /* Tints.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A90D49432DDE1C1100781124 /* Tints.xcassets */; };
|
||||||
|
A90D49452DDE1C7600781124 /* Tints.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A90D49432DDE1C1100781124 /* Tints.xcassets */; };
|
||||||
|
A90D49462DDE1C7A00781124 /* Tints.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A90D49432DDE1C1100781124 /* Tints.xcassets */; };
|
||||||
|
A90D49522DDE2D0000781124 /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90D49512DDE2D0000781124 /* Extensions.swift */; };
|
||||||
|
A90D49532DDE2D0000781124 /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90D49512DDE2D0000781124 /* Extensions.swift */; };
|
||||||
|
A90D495B2DDE2EDB00781124 /* MacNearFutureApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90D495A2DDE2EDB00781124 /* MacNearFutureApp.swift */; };
|
||||||
|
A90D495E2DDE3C7400781124 /* NFCommands.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90D495D2DDE3C7400781124 /* NFCommands.swift */; };
|
||||||
|
A90D495F2DDE3C7400781124 /* NFCommands.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90D495D2DDE3C7400781124 /* NFCommands.swift */; };
|
||||||
|
A90D49612DDE626300781124 /* Settings.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90D49602DDE626300781124 /* Settings.swift */; };
|
||||||
|
A90D49622DDE626300781124 /* Settings.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90D49602DDE626300781124 /* Settings.swift */; };
|
||||||
|
A90D49632DDE626300781124 /* Settings.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90D49602DDE626300781124 /* Settings.swift */; };
|
||||||
|
A914FA4B2DD26C6800856265 /* HomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A914FA4A2DD26C0F00856265 /* HomeView.swift */; };
|
||||||
|
A914FA4D2DD2768900856265 /* WhatsNewView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A914FA4C2DD2768900856265 /* WhatsNewView.swift */; };
|
||||||
|
A914FA4F2DD276D200856265 /* AboutView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A914FA4E2DD276D200856265 /* AboutView.swift */; };
|
||||||
|
A91EF8072DFC8B8B00B8463D /* ColorCodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = A91EF8062DFC8B8B00B8463D /* ColorCodable.swift */; };
|
||||||
|
A91EF8082DFC8B8B00B8463D /* ColorCodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = A91EF8062DFC8B8B00B8463D /* ColorCodable.swift */; };
|
||||||
|
A91EF8092DFC8B8B00B8463D /* ColorCodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = A91EF8062DFC8B8B00B8463D /* ColorCodable.swift */; };
|
||||||
|
A91EF80B2DFC910000B8463D /* ViewModifiers.swift in Sources */ = {isa = PBXBuildFile; fileRef = A91EF80A2DFC910000B8463D /* ViewModifiers.swift */; };
|
||||||
|
A91EF80C2DFC910000B8463D /* ViewModifiers.swift in Sources */ = {isa = PBXBuildFile; fileRef = A91EF80A2DFC910000B8463D /* ViewModifiers.swift */; };
|
||||||
|
A91EF80D2DFC910000B8463D /* ViewModifiers.swift in Sources */ = {isa = PBXBuildFile; fileRef = A91EF80A2DFC910000B8463D /* ViewModifiers.swift */; };
|
||||||
|
A91EF80E2DFC9A0C00B8463D /* WhatsNewView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A914FA4C2DD2768900856265 /* WhatsNewView.swift */; };
|
||||||
|
A91EF8102DFCB66C00B8463D /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A91EF80F2DFCB66C00B8463D /* SettingsView.swift */; };
|
||||||
|
A91EF8132DFCC87D00B8463D /* EditEventView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F83D2DCAABE00064DCA0 /* EditEventView.swift */; };
|
||||||
|
A91EF8142DFCC87D00B8463D /* AddEventView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F83C2DCAABE00064DCA0 /* AddEventView.swift */; };
|
||||||
|
A91EF8182DFD77BF00B8463D /* SymbolsLoader.swift in Sources */ = {isa = PBXBuildFile; fileRef = A91EF8172DFD77BF00B8463D /* SymbolsLoader.swift */; };
|
||||||
|
A91EF8192DFD77BF00B8463D /* SymbolsLoader.swift in Sources */ = {isa = PBXBuildFile; fileRef = A91EF8172DFD77BF00B8463D /* SymbolsLoader.swift */; };
|
||||||
|
A91EF81A2DFD77BF00B8463D /* SymbolsLoader.swift in Sources */ = {isa = PBXBuildFile; fileRef = A91EF8172DFD77BF00B8463D /* SymbolsLoader.swift */; };
|
||||||
|
A91EF81C2DFD796600B8463D /* SymbolsPicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = A91EF81B2DFD796600B8463D /* SymbolsPicker.swift */; };
|
||||||
|
A91EF81D2DFD796600B8463D /* SymbolsPicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = A91EF81B2DFD796600B8463D /* SymbolsPicker.swift */; };
|
||||||
|
A91EF81E2DFD796600B8463D /* SymbolsPicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = A91EF81B2DFD796600B8463D /* SymbolsPicker.swift */; };
|
||||||
A920C2882D24011400E4F9B1 /* NearFutureApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = A920C2872D24011400E4F9B1 /* NearFutureApp.swift */; };
|
A920C2882D24011400E4F9B1 /* NearFutureApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = A920C2872D24011400E4F9B1 /* NearFutureApp.swift */; };
|
||||||
A920C28C2D24011400E4F9B1 /* Item.swift in Sources */ = {isa = PBXBuildFile; fileRef = A920C28B2D24011400E4F9B1 /* Item.swift */; };
|
A920C28C2D24011400E4F9B1 /* Events.swift in Sources */ = {isa = PBXBuildFile; fileRef = A920C28B2D24011400E4F9B1 /* Events.swift */; };
|
||||||
A920C28E2D24011A00E4F9B1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A920C28D2D24011A00E4F9B1 /* Assets.xcassets */; };
|
A920C28E2D24011A00E4F9B1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A920C28D2D24011A00E4F9B1 /* Assets.xcassets */; };
|
||||||
A920C2922D24011A00E4F9B1 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A920C2912D24011A00E4F9B1 /* Preview Assets.xcassets */; };
|
A920C2922D24011A00E4F9B1 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A920C2912D24011A00E4F9B1 /* Preview Assets.xcassets */; };
|
||||||
A920C2BE2D24021A00E4F9B1 /* SFSymbolsPicker in Frameworks */ = {isa = PBXBuildFile; productRef = A920C2BD2D24021A00E4F9B1 /* SFSymbolsPicker */; };
|
|
||||||
A949F8322DCAAA8A0064DCA0 /* NearFutureIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = A949F8312DCAAA8A0064DCA0 /* NearFutureIcon.png */; };
|
A949F8322DCAAA8A0064DCA0 /* NearFutureIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = A949F8312DCAAA8A0064DCA0 /* NearFutureIcon.png */; };
|
||||||
A949F84B2DCAABE00064DCA0 /* ArchiveView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F83A2DCAABE00064DCA0 /* ArchiveView.swift */; };
|
A949F84B2DCAABE00064DCA0 /* ArchiveView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F83A2DCAABE00064DCA0 /* ArchiveView.swift */; };
|
||||||
A949F84C2DCAABE00064DCA0 /* AddEventView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F83C2DCAABE00064DCA0 /* AddEventView.swift */; };
|
A949F84C2DCAABE00064DCA0 /* AddEventView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F83C2DCAABE00064DCA0 /* AddEventView.swift */; };
|
||||||
@@ -24,16 +57,25 @@
|
|||||||
A949F8532DCAABE00064DCA0 /* ImportView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8452DCAABE00064DCA0 /* ImportView.swift */; };
|
A949F8532DCAABE00064DCA0 /* ImportView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8452DCAABE00064DCA0 /* ImportView.swift */; };
|
||||||
A949F8542DCAABE00064DCA0 /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8462DCAABE00064DCA0 /* SettingsView.swift */; };
|
A949F8542DCAABE00064DCA0 /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8462DCAABE00064DCA0 /* SettingsView.swift */; };
|
||||||
A949F8552DCAABE00064DCA0 /* StatsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8482DCAABE00064DCA0 /* StatsView.swift */; };
|
A949F8552DCAABE00064DCA0 /* StatsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8482DCAABE00064DCA0 /* StatsView.swift */; };
|
||||||
A949F8562DCAABE00064DCA0 /* ExportView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8432DCAABE00064DCA0 /* ExportView.swift */; };
|
|
||||||
A949F8592DCAAD670064DCA0 /* NearFutureTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8572DCAAD670064DCA0 /* NearFutureTests.swift */; };
|
|
||||||
A949F85F2DCABB420064DCA0 /* Buttons.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F85D2DCABB420064DCA0 /* Buttons.swift */; };
|
A949F85F2DCABB420064DCA0 /* Buttons.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F85D2DCABB420064DCA0 /* Buttons.swift */; };
|
||||||
A979F6052D270AF00094C0B3 /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A979F6042D270AF00094C0B3 /* WidgetKit.framework */; };
|
A95E9ED32DFC703200ED655F /* iCloudSettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8442DCAABE00064DCA0 /* iCloudSettingsView.swift */; };
|
||||||
A979F6072D270AF00094C0B3 /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A979F6062D270AF00094C0B3 /* SwiftUI.framework */; };
|
A95E9ED82DFC742B00ED655F /* AccentIcon.swift in Sources */ = {isa = PBXBuildFile; fileRef = A95E9ED72DFC742B00ED655F /* AccentIcon.swift */; };
|
||||||
|
A95E9ED92DFC742B00ED655F /* AccentIcon.swift in Sources */ = {isa = PBXBuildFile; fileRef = A95E9ED72DFC742B00ED655F /* AccentIcon.swift */; };
|
||||||
|
A95E9EDA2DFC742B00ED655F /* AccentIcon.swift in Sources */ = {isa = PBXBuildFile; fileRef = A95E9ED72DFC742B00ED655F /* AccentIcon.swift */; };
|
||||||
|
A95E9EE42DFC77D400ED655F /* ImportView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8452DCAABE00064DCA0 /* ImportView.swift */; };
|
||||||
|
A95E9EE52DFC77E200ED655F /* ExportView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8432DCAABE00064DCA0 /* ExportView.swift */; };
|
||||||
|
A96609E72DFD800000DBFA78 /* HelpView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8412DCAABE00064DCA0 /* HelpView.swift */; };
|
||||||
A979F60A2D270AF00094C0B3 /* NearFutureWidgetsBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = A979F6092D270AF00094C0B3 /* NearFutureWidgetsBundle.swift */; };
|
A979F60A2D270AF00094C0B3 /* NearFutureWidgetsBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = A979F6092D270AF00094C0B3 /* NearFutureWidgetsBundle.swift */; };
|
||||||
A979F60C2D270AF00094C0B3 /* NearFutureWidgetsLiveActivity.swift in Sources */ = {isa = PBXBuildFile; fileRef = A979F60B2D270AF00094C0B3 /* NearFutureWidgetsLiveActivity.swift */; };
|
A979F60C2D270AF00094C0B3 /* NearFutureWidgetsLiveActivity.swift in Sources */ = {isa = PBXBuildFile; fileRef = A979F60B2D270AF00094C0B3 /* NearFutureWidgetsLiveActivity.swift */; };
|
||||||
A979F6102D270AF90094C0B3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A979F60F2D270AF80094C0B3 /* Assets.xcassets */; };
|
A979F6102D270AF90094C0B3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A979F60F2D270AF80094C0B3 /* Assets.xcassets */; };
|
||||||
A979F6142D270AF90094C0B3 /* NearFutureWidgetsExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = A979F6022D270AF00094C0B3 /* NearFutureWidgetsExtension.appex */; platformFilter = ios; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
A979F6142D270AF90094C0B3 /* NearFutureWidgetsExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = A979F6022D270AF00094C0B3 /* NearFutureWidgetsExtension.appex */; platformFilter = ios; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||||
A979F6182D2714310094C0B3 /* Item.swift in Sources */ = {isa = PBXBuildFile; fileRef = A920C28B2D24011400E4F9B1 /* Item.swift */; };
|
A979F6182D2714310094C0B3 /* Events.swift in Sources */ = {isa = PBXBuildFile; fileRef = A920C28B2D24011400E4F9B1 /* Events.swift */; };
|
||||||
|
A98C20CE2DE7308E0008D61C /* ArchiveView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98C20CD2DE7308E0008D61C /* ArchiveView.swift */; };
|
||||||
|
A98C20D02DE731BD0008D61C /* HomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98C20CF2DE731BD0008D61C /* HomeView.swift */; };
|
||||||
|
A98C20D42DE7339E0008D61C /* AboutView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98C20D32DE7339E0008D61C /* AboutView.swift */; };
|
||||||
|
A9BAC6882DFF242300EC8E44 /* CompleteEventButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BAC6872DFF238100EC8E44 /* CompleteEventButton.swift */; };
|
||||||
|
A9BAC6892DFF242300EC8E44 /* CompleteEventButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BAC6872DFF238100EC8E44 /* CompleteEventButton.swift */; };
|
||||||
|
A9D1C34D2DFE10FA00703C2D /* EventListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8402DCAABE00064DCA0 /* EventListView.swift */; };
|
||||||
A9FC7EEA2D2823920020D75B /* NearFutureWidgets.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9FC7EE92D28238A0020D75B /* NearFutureWidgets.swift */; };
|
A9FC7EEA2D2823920020D75B /* NearFutureWidgets.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9FC7EE92D28238A0020D75B /* NearFutureWidgets.swift */; };
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
@@ -45,12 +87,12 @@
|
|||||||
remoteGlobalIDString = A979F6012D270AF00094C0B3;
|
remoteGlobalIDString = A979F6012D270AF00094C0B3;
|
||||||
remoteInfo = NearFutureWidgetsExtension;
|
remoteInfo = NearFutureWidgetsExtension;
|
||||||
};
|
};
|
||||||
A980FC3B2D93FB2B006A778F /* PBXContainerItemProxy */ = {
|
A98C20D12DE732B10008D61C /* PBXContainerItemProxy */ = {
|
||||||
isa = PBXContainerItemProxy;
|
isa = PBXContainerItemProxy;
|
||||||
containerPortal = A920C27C2D24011300E4F9B1 /* Project object */;
|
containerPortal = A920C27C2D24011300E4F9B1 /* Project object */;
|
||||||
proxyType = 1;
|
proxyType = 1;
|
||||||
remoteGlobalIDString = A920C2832D24011300E4F9B1;
|
remoteGlobalIDString = A979F6012D270AF00094C0B3;
|
||||||
remoteInfo = NearFuture;
|
remoteInfo = NearFutureWidgetsExtension;
|
||||||
};
|
};
|
||||||
/* End PBXContainerItemProxy section */
|
/* End PBXContainerItemProxy section */
|
||||||
|
|
||||||
@@ -69,12 +111,29 @@
|
|||||||
/* End PBXCopyFilesBuildPhase section */
|
/* End PBXCopyFilesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
|
A90D491F2DDE08E400781124 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
|
||||||
|
A90D49262DDE0FA400781124 /* Near Future.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Near Future.app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
A90D49332DDE0FAF00781124 /* ContentViewMac.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentViewMac.swift; sourceTree = "<group>"; };
|
||||||
|
A90D49342DDE0FAF00781124 /* MacNearFuture.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = MacNearFuture.entitlements; sourceTree = "<group>"; };
|
||||||
|
A90D49432DDE1C1100781124 /* Tints.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Tints.xcassets; sourceTree = "<group>"; };
|
||||||
|
A90D49512DDE2D0000781124 /* Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = "<group>"; };
|
||||||
|
A90D495A2DDE2EDB00781124 /* MacNearFutureApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MacNearFutureApp.swift; path = MacNearFuture/MacNearFutureApp.swift; sourceTree = SOURCE_ROOT; };
|
||||||
|
A90D495D2DDE3C7400781124 /* NFCommands.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NFCommands.swift; sourceTree = "<group>"; };
|
||||||
|
A90D49602DDE626300781124 /* Settings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Settings.swift; sourceTree = "<group>"; };
|
||||||
|
A90D49652DDE658100781124 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
A90FDE222DC0D4310012790C /* Config.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Config.xcconfig; sourceTree = "<group>"; };
|
A90FDE222DC0D4310012790C /* Config.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Config.xcconfig; sourceTree = "<group>"; };
|
||||||
|
A914FA4A2DD26C0F00856265 /* HomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeView.swift; sourceTree = "<group>"; };
|
||||||
|
A914FA4C2DD2768900856265 /* WhatsNewView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = WhatsNewView.swift; path = NearFuture/Views/Settings/WhatsNewView.swift; sourceTree = SOURCE_ROOT; };
|
||||||
|
A914FA4E2DD276D200856265 /* AboutView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AboutView.swift; path = NearFuture/Views/Misc/AboutView.swift; sourceTree = SOURCE_ROOT; };
|
||||||
|
A91EF8062DFC8B8B00B8463D /* ColorCodable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ColorCodable.swift; sourceTree = "<group>"; };
|
||||||
|
A91EF80A2DFC910000B8463D /* ViewModifiers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewModifiers.swift; sourceTree = "<group>"; };
|
||||||
|
A91EF80F2DFCB66C00B8463D /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = "<group>"; };
|
||||||
|
A91EF8172DFD77BF00B8463D /* SymbolsLoader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SymbolsLoader.swift; sourceTree = "<group>"; };
|
||||||
|
A91EF81B2DFD796600B8463D /* SymbolsPicker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SymbolsPicker.swift; sourceTree = "<group>"; };
|
||||||
A920C2842D24011400E4F9B1 /* NearFuture.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NearFuture.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
A920C2842D24011400E4F9B1 /* NearFuture.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NearFuture.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
A920C2872D24011400E4F9B1 /* NearFutureApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureApp.swift; sourceTree = "<group>"; };
|
A920C2872D24011400E4F9B1 /* NearFutureApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureApp.swift; sourceTree = "<group>"; };
|
||||||
A920C28B2D24011400E4F9B1 /* Item.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Item.swift; sourceTree = "<group>"; };
|
A920C28B2D24011400E4F9B1 /* Events.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Events.swift; sourceTree = "<group>"; };
|
||||||
A920C28D2D24011A00E4F9B1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
A920C28D2D24011A00E4F9B1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||||
A920C28F2D24011A00E4F9B1 /* NearFuture.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = NearFuture.entitlements; sourceTree = "<group>"; };
|
|
||||||
A920C2912D24011A00E4F9B1 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
|
A920C2912D24011A00E4F9B1 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
|
||||||
A949F82E2DCAAA640064DCA0 /* NearFutureIcon.pxd */ = {isa = PBXFileReference; lastKnownFileType = file; path = NearFutureIcon.pxd; sourceTree = "<group>"; };
|
A949F82E2DCAAA640064DCA0 /* NearFutureIcon.pxd */ = {isa = PBXFileReference; lastKnownFileType = file; path = NearFutureIcon.pxd; sourceTree = "<group>"; };
|
||||||
A949F82F2DCAAA640064DCA0 /* NearFutureIconDark.pxd */ = {isa = PBXFileReference; lastKnownFileType = file; path = NearFutureIconDark.pxd; sourceTree = "<group>"; };
|
A949F82F2DCAAA640064DCA0 /* NearFutureIconDark.pxd */ = {isa = PBXFileReference; lastKnownFileType = file; path = NearFutureIconDark.pxd; sourceTree = "<group>"; };
|
||||||
@@ -91,46 +150,35 @@
|
|||||||
A949F8452DCAABE00064DCA0 /* ImportView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImportView.swift; sourceTree = "<group>"; };
|
A949F8452DCAABE00064DCA0 /* ImportView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImportView.swift; sourceTree = "<group>"; };
|
||||||
A949F8462DCAABE00064DCA0 /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = "<group>"; };
|
A949F8462DCAABE00064DCA0 /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = "<group>"; };
|
||||||
A949F8482DCAABE00064DCA0 /* StatsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatsView.swift; sourceTree = "<group>"; };
|
A949F8482DCAABE00064DCA0 /* StatsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatsView.swift; sourceTree = "<group>"; };
|
||||||
A949F8572DCAAD670064DCA0 /* NearFutureTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureTests.swift; sourceTree = "<group>"; };
|
|
||||||
A949F85D2DCABB420064DCA0 /* Buttons.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Buttons.swift; sourceTree = "<group>"; };
|
A949F85D2DCABB420064DCA0 /* Buttons.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Buttons.swift; sourceTree = "<group>"; };
|
||||||
A979F58B2D2700680094C0B3 /* NearFutureWidgetsBundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgetsBundle.swift; sourceTree = "<group>"; };
|
A95E9ED72DFC742B00ED655F /* AccentIcon.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccentIcon.swift; sourceTree = "<group>"; };
|
||||||
A979F58D2D2700680094C0B3 /* NearFutureWidgetsLiveActivity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgetsLiveActivity.swift; sourceTree = "<group>"; };
|
|
||||||
A979F58F2D2700680094C0B3 /* NearFutureWidgets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgets.swift; sourceTree = "<group>"; };
|
|
||||||
A979F5912D2700680094C0B3 /* AppIntent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppIntent.swift; sourceTree = "<group>"; };
|
|
||||||
A979F5932D27006D0094C0B3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
|
||||||
A979F5952D27006D0094C0B3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
|
||||||
A979F6022D270AF00094C0B3 /* NearFutureWidgetsExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = NearFutureWidgetsExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; };
|
A979F6022D270AF00094C0B3 /* NearFutureWidgetsExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = NearFutureWidgetsExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
A979F6042D270AF00094C0B3 /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; };
|
|
||||||
A979F6062D270AF00094C0B3 /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; };
|
|
||||||
A979F6092D270AF00094C0B3 /* NearFutureWidgetsBundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgetsBundle.swift; sourceTree = "<group>"; };
|
A979F6092D270AF00094C0B3 /* NearFutureWidgetsBundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgetsBundle.swift; sourceTree = "<group>"; };
|
||||||
A979F60B2D270AF00094C0B3 /* NearFutureWidgetsLiveActivity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgetsLiveActivity.swift; sourceTree = "<group>"; };
|
A979F60B2D270AF00094C0B3 /* NearFutureWidgetsLiveActivity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgetsLiveActivity.swift; sourceTree = "<group>"; };
|
||||||
A979F60F2D270AF80094C0B3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
A979F60F2D270AF80094C0B3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||||
A979F6112D270AF90094C0B3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
A98C20CD2DE7308E0008D61C /* ArchiveView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ArchiveView.swift; sourceTree = "<group>"; };
|
||||||
A980FC302D920097006A778F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
A98C20CF2DE731BD0008D61C /* HomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeView.swift; sourceTree = "<group>"; };
|
||||||
A980FC372D93FB2B006A778F /* NearFutureTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NearFutureTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
A98C20D32DE7339E0008D61C /* AboutView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AboutView.swift; sourceTree = "<group>"; };
|
||||||
A9C05E412D2805D7007DC497 /* NearFutureWidgetsExtension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = NearFutureWidgetsExtension.entitlements; sourceTree = "<group>"; };
|
A9BAC6872DFF238100EC8E44 /* CompleteEventButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CompleteEventButton.swift; sourceTree = "<group>"; };
|
||||||
A9FC7EE92D28238A0020D75B /* NearFutureWidgets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgets.swift; sourceTree = "<group>"; };
|
A9FC7EE92D28238A0020D75B /* NearFutureWidgets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgets.swift; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
/* Begin PBXFrameworksBuildPhase section */
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
|
A90D49232DDE0FA400781124 /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
A920C2812D24011300E4F9B1 /* Frameworks */ = {
|
A920C2812D24011300E4F9B1 /* Frameworks */ = {
|
||||||
isa = PBXFrameworksBuildPhase;
|
isa = PBXFrameworksBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
A920C2BE2D24021A00E4F9B1 /* SFSymbolsPicker in Frameworks */,
|
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
A979F5FF2D270AF00094C0B3 /* Frameworks */ = {
|
A979F5FF2D270AF00094C0B3 /* Frameworks */ = {
|
||||||
isa = PBXFrameworksBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
A979F6072D270AF00094C0B3 /* SwiftUI.framework in Frameworks */,
|
|
||||||
A979F6052D270AF00094C0B3 /* WidgetKit.framework in Frameworks */,
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
A980FC342D93FB2B006A778F /* Frameworks */ = {
|
|
||||||
isa = PBXFrameworksBuildPhase;
|
isa = PBXFrameworksBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
@@ -140,15 +188,80 @@
|
|||||||
/* End PBXFrameworksBuildPhase section */
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXGroup section */
|
/* Begin PBXGroup section */
|
||||||
|
A90D49202DDE0A3B00781124 /* Model */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A920C28B2D24011400E4F9B1 /* Events.swift */,
|
||||||
|
A90D49602DDE626300781124 /* Settings.swift */,
|
||||||
|
A91EF8062DFC8B8B00B8463D /* ColorCodable.swift */,
|
||||||
|
A95E9ED72DFC742B00ED655F /* AccentIcon.swift */,
|
||||||
|
A91EF8162DFD77A500B8463D /* SymbolsPicker */,
|
||||||
|
);
|
||||||
|
path = Model;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A90D49362DDE0FAF00781124 /* MacNearFuture */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A90D495A2DDE2EDB00781124 /* MacNearFutureApp.swift */,
|
||||||
|
A98C20D32DE7339E0008D61C /* AboutView.swift */,
|
||||||
|
A90D495D2DDE3C7400781124 /* NFCommands.swift */,
|
||||||
|
A90D493F2DDE10EC00781124 /* Views */,
|
||||||
|
A90D49342DDE0FAF00781124 /* MacNearFuture.entitlements */,
|
||||||
|
);
|
||||||
|
path = MacNearFuture;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A90D493F2DDE10EC00781124 /* Views */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A90D49332DDE0FAF00781124 /* ContentViewMac.swift */,
|
||||||
|
A98C20CF2DE731BD0008D61C /* HomeView.swift */,
|
||||||
|
A98C20CD2DE7308E0008D61C /* ArchiveView.swift */,
|
||||||
|
A91EF80F2DFCB66C00B8463D /* SettingsView.swift */,
|
||||||
|
);
|
||||||
|
path = Views;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A90D49412DDE112700781124 /* Shared */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A920C2872D24011400E4F9B1 /* NearFutureApp.swift */,
|
||||||
|
A90D49512DDE2D0000781124 /* Extensions.swift */,
|
||||||
|
A90D49202DDE0A3B00781124 /* Model */,
|
||||||
|
A91EF80A2DFC910000B8463D /* ViewModifiers.swift */,
|
||||||
|
A9BAC6872DFF238100EC8E44 /* CompleteEventButton.swift */,
|
||||||
|
);
|
||||||
|
path = Shared;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A90D49542DDE2D5800781124 /* Frameworks */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
);
|
||||||
|
name = Frameworks;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A91EF8162DFD77A500B8463D /* SymbolsPicker */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A91EF8172DFD77BF00B8463D /* SymbolsLoader.swift */,
|
||||||
|
A91EF81B2DFD796600B8463D /* SymbolsPicker.swift */,
|
||||||
|
);
|
||||||
|
path = SymbolsPicker;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
A920C27B2D24011300E4F9B1 = {
|
A920C27B2D24011300E4F9B1 = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
A90D491F2DDE08E400781124 /* README.md */,
|
||||||
A90FDE222DC0D4310012790C /* Config.xcconfig */,
|
A90FDE222DC0D4310012790C /* Config.xcconfig */,
|
||||||
A949F8002DCAA0340064DCA0 /* Resources */,
|
A90D49412DDE112700781124 /* Shared */,
|
||||||
A920C2862D24011400E4F9B1 /* NearFuture */,
|
A920C2862D24011400E4F9B1 /* NearFuture */,
|
||||||
|
A90D49362DDE0FAF00781124 /* MacNearFuture */,
|
||||||
|
A949F8002DCAA0340064DCA0 /* Resources */,
|
||||||
A979F6082D270AF00094C0B3 /* NearFutureWidgets */,
|
A979F6082D270AF00094C0B3 /* NearFutureWidgets */,
|
||||||
A949F8582DCAAD670064DCA0 /* NearFutureTests */,
|
A90D49542DDE2D5800781124 /* Frameworks */,
|
||||||
A979F6032D270AF00094C0B3 /* Frameworks */,
|
|
||||||
A920C2852D24011400E4F9B1 /* Products */,
|
A920C2852D24011400E4F9B1 /* Products */,
|
||||||
);
|
);
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@@ -158,7 +271,7 @@
|
|||||||
children = (
|
children = (
|
||||||
A920C2842D24011400E4F9B1 /* NearFuture.app */,
|
A920C2842D24011400E4F9B1 /* NearFuture.app */,
|
||||||
A979F6022D270AF00094C0B3 /* NearFutureWidgetsExtension.appex */,
|
A979F6022D270AF00094C0B3 /* NearFutureWidgetsExtension.appex */,
|
||||||
A980FC372D93FB2B006A778F /* NearFutureTests.xctest */,
|
A90D49262DDE0FA400781124 /* Near Future.app */,
|
||||||
);
|
);
|
||||||
name = Products;
|
name = Products;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@@ -166,11 +279,7 @@
|
|||||||
A920C2862D24011400E4F9B1 /* NearFuture */ = {
|
A920C2862D24011400E4F9B1 /* NearFuture */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
A920C2872D24011400E4F9B1 /* NearFutureApp.swift */,
|
|
||||||
A920C28B2D24011400E4F9B1 /* Item.swift */,
|
|
||||||
A949F84A2DCAABE00064DCA0 /* Views */,
|
A949F84A2DCAABE00064DCA0 /* Views */,
|
||||||
A980FC302D920097006A778F /* Info.plist */,
|
|
||||||
A920C28F2D24011A00E4F9B1 /* NearFuture.entitlements */,
|
|
||||||
A920C2902D24011A00E4F9B1 /* Preview Content */,
|
A920C2902D24011A00E4F9B1 /* Preview Content */,
|
||||||
);
|
);
|
||||||
path = NearFuture;
|
path = NearFuture;
|
||||||
@@ -179,7 +288,6 @@
|
|||||||
A920C2902D24011A00E4F9B1 /* Preview Content */ = {
|
A920C2902D24011A00E4F9B1 /* Preview Content */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
A979F58A2D2700680094C0B3 /* NearFutureWidgets */,
|
|
||||||
A920C2912D24011A00E4F9B1 /* Preview Assets.xcassets */,
|
A920C2912D24011A00E4F9B1 /* Preview Assets.xcassets */,
|
||||||
);
|
);
|
||||||
path = "Preview Content";
|
path = "Preview Content";
|
||||||
@@ -190,6 +298,7 @@
|
|||||||
children = (
|
children = (
|
||||||
A949F8312DCAAA8A0064DCA0 /* NearFutureIcon.png */,
|
A949F8312DCAAA8A0064DCA0 /* NearFutureIcon.png */,
|
||||||
A920C28D2D24011A00E4F9B1 /* Assets.xcassets */,
|
A920C28D2D24011A00E4F9B1 /* Assets.xcassets */,
|
||||||
|
A90D49432DDE1C1100781124 /* Tints.xcassets */,
|
||||||
A949F82E2DCAAA640064DCA0 /* NearFutureIcon.pxd */,
|
A949F82E2DCAAA640064DCA0 /* NearFutureIcon.pxd */,
|
||||||
A949F82F2DCAAA640064DCA0 /* NearFutureIconDark.pxd */,
|
A949F82F2DCAAA640064DCA0 /* NearFutureIconDark.pxd */,
|
||||||
A949F8302DCAAA640064DCA0 /* NearFutureIconTint.pxd */,
|
A949F8302DCAAA640064DCA0 /* NearFutureIconTint.pxd */,
|
||||||
@@ -217,7 +326,7 @@
|
|||||||
A949F8422DCAABE00064DCA0 /* Home */ = {
|
A949F8422DCAABE00064DCA0 /* Home */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
A949F83F2DCAABE00064DCA0 /* ContentView.swift */,
|
A914FA4A2DD26C0F00856265 /* HomeView.swift */,
|
||||||
A949F8402DCAABE00064DCA0 /* EventListView.swift */,
|
A949F8402DCAABE00064DCA0 /* EventListView.swift */,
|
||||||
A949F8412DCAABE00064DCA0 /* HelpView.swift */,
|
A949F8412DCAABE00064DCA0 /* HelpView.swift */,
|
||||||
);
|
);
|
||||||
@@ -227,10 +336,11 @@
|
|||||||
A949F8472DCAABE00064DCA0 /* Settings */ = {
|
A949F8472DCAABE00064DCA0 /* Settings */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
A949F8432DCAABE00064DCA0 /* ExportView.swift */,
|
|
||||||
A949F8442DCAABE00064DCA0 /* iCloudSettingsView.swift */,
|
|
||||||
A949F8452DCAABE00064DCA0 /* ImportView.swift */,
|
|
||||||
A949F8462DCAABE00064DCA0 /* SettingsView.swift */,
|
A949F8462DCAABE00064DCA0 /* SettingsView.swift */,
|
||||||
|
A949F8442DCAABE00064DCA0 /* iCloudSettingsView.swift */,
|
||||||
|
A914FA4C2DD2768900856265 /* WhatsNewView.swift */,
|
||||||
|
A949F8452DCAABE00064DCA0 /* ImportView.swift */,
|
||||||
|
A949F8432DCAABE00064DCA0 /* ExportView.swift */,
|
||||||
);
|
);
|
||||||
path = Settings;
|
path = Settings;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@@ -246,54 +356,26 @@
|
|||||||
A949F84A2DCAABE00064DCA0 /* Views */ = {
|
A949F84A2DCAABE00064DCA0 /* Views */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
A949F83B2DCAABE00064DCA0 /* Archive */,
|
A949F83F2DCAABE00064DCA0 /* ContentView.swift */,
|
||||||
A949F83E2DCAABE00064DCA0 /* Events */,
|
|
||||||
A949F8422DCAABE00064DCA0 /* Home */,
|
A949F8422DCAABE00064DCA0 /* Home */,
|
||||||
A949F8472DCAABE00064DCA0 /* Settings */,
|
A949F83E2DCAABE00064DCA0 /* Events */,
|
||||||
A949F8492DCAABE00064DCA0 /* Stats */,
|
A949F83B2DCAABE00064DCA0 /* Archive */,
|
||||||
A949F85E2DCABB420064DCA0 /* Misc */,
|
A949F85E2DCABB420064DCA0 /* Misc */,
|
||||||
|
A949F8492DCAABE00064DCA0 /* Stats */,
|
||||||
|
A949F8472DCAABE00064DCA0 /* Settings */,
|
||||||
);
|
);
|
||||||
path = Views;
|
path = Views;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
A949F8582DCAAD670064DCA0 /* NearFutureTests */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
A949F8572DCAAD670064DCA0 /* NearFutureTests.swift */,
|
|
||||||
);
|
|
||||||
path = NearFutureTests;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
A949F85E2DCABB420064DCA0 /* Misc */ = {
|
A949F85E2DCABB420064DCA0 /* Misc */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
A949F85D2DCABB420064DCA0 /* Buttons.swift */,
|
A949F85D2DCABB420064DCA0 /* Buttons.swift */,
|
||||||
|
A914FA4E2DD276D200856265 /* AboutView.swift */,
|
||||||
);
|
);
|
||||||
path = Misc;
|
path = Misc;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
A979F58A2D2700680094C0B3 /* NearFutureWidgets */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
A979F58B2D2700680094C0B3 /* NearFutureWidgetsBundle.swift */,
|
|
||||||
A979F58D2D2700680094C0B3 /* NearFutureWidgetsLiveActivity.swift */,
|
|
||||||
A979F58F2D2700680094C0B3 /* NearFutureWidgets.swift */,
|
|
||||||
A979F5912D2700680094C0B3 /* AppIntent.swift */,
|
|
||||||
A979F5932D27006D0094C0B3 /* Assets.xcassets */,
|
|
||||||
A979F5952D27006D0094C0B3 /* Info.plist */,
|
|
||||||
);
|
|
||||||
path = NearFutureWidgets;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
A979F6032D270AF00094C0B3 /* Frameworks */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
A979F6042D270AF00094C0B3 /* WidgetKit.framework */,
|
|
||||||
A979F6062D270AF00094C0B3 /* SwiftUI.framework */,
|
|
||||||
);
|
|
||||||
name = Frameworks;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
A979F6082D270AF00094C0B3 /* NearFutureWidgets */ = {
|
A979F6082D270AF00094C0B3 /* NearFutureWidgets */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
@@ -301,8 +383,7 @@
|
|||||||
A979F6092D270AF00094C0B3 /* NearFutureWidgetsBundle.swift */,
|
A979F6092D270AF00094C0B3 /* NearFutureWidgetsBundle.swift */,
|
||||||
A979F60B2D270AF00094C0B3 /* NearFutureWidgetsLiveActivity.swift */,
|
A979F60B2D270AF00094C0B3 /* NearFutureWidgetsLiveActivity.swift */,
|
||||||
A979F60F2D270AF80094C0B3 /* Assets.xcassets */,
|
A979F60F2D270AF80094C0B3 /* Assets.xcassets */,
|
||||||
A979F6112D270AF90094C0B3 /* Info.plist */,
|
A90D49652DDE658100781124 /* Info.plist */,
|
||||||
A9C05E412D2805D7007DC497 /* NearFutureWidgetsExtension.entitlements */,
|
|
||||||
);
|
);
|
||||||
path = NearFutureWidgets;
|
path = NearFutureWidgets;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@@ -310,6 +391,26 @@
|
|||||||
/* End PBXGroup section */
|
/* End PBXGroup section */
|
||||||
|
|
||||||
/* Begin PBXNativeTarget section */
|
/* Begin PBXNativeTarget section */
|
||||||
|
A90D49252DDE0FA400781124 /* MacNearFuture */ = {
|
||||||
|
isa = PBXNativeTarget;
|
||||||
|
buildConfigurationList = A90D492F2DDE0FA600781124 /* Build configuration list for PBXNativeTarget "MacNearFuture" */;
|
||||||
|
buildPhases = (
|
||||||
|
A90D49222DDE0FA400781124 /* Sources */,
|
||||||
|
A90D49232DDE0FA400781124 /* Frameworks */,
|
||||||
|
A90D49242DDE0FA400781124 /* Resources */,
|
||||||
|
);
|
||||||
|
buildRules = (
|
||||||
|
);
|
||||||
|
dependencies = (
|
||||||
|
A98C20D22DE732B10008D61C /* PBXTargetDependency */,
|
||||||
|
);
|
||||||
|
name = MacNearFuture;
|
||||||
|
packageProductDependencies = (
|
||||||
|
);
|
||||||
|
productName = MacNearFuture;
|
||||||
|
productReference = A90D49262DDE0FA400781124 /* Near Future.app */;
|
||||||
|
productType = "com.apple.product-type.application";
|
||||||
|
};
|
||||||
A920C2832D24011300E4F9B1 /* NearFuture */ = {
|
A920C2832D24011300E4F9B1 /* NearFuture */ = {
|
||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = A920C2AB2D24011B00E4F9B1 /* Build configuration list for PBXNativeTarget "NearFuture" */;
|
buildConfigurationList = A920C2AB2D24011B00E4F9B1 /* Build configuration list for PBXNativeTarget "NearFuture" */;
|
||||||
@@ -326,7 +427,6 @@
|
|||||||
);
|
);
|
||||||
name = NearFuture;
|
name = NearFuture;
|
||||||
packageProductDependencies = (
|
packageProductDependencies = (
|
||||||
A920C2BD2D24021A00E4F9B1 /* SFSymbolsPicker */,
|
|
||||||
);
|
);
|
||||||
productName = NearFuture;
|
productName = NearFuture;
|
||||||
productReference = A920C2842D24011400E4F9B1 /* NearFuture.app */;
|
productReference = A920C2842D24011400E4F9B1 /* NearFuture.app */;
|
||||||
@@ -349,26 +449,6 @@
|
|||||||
productReference = A979F6022D270AF00094C0B3 /* NearFutureWidgetsExtension.appex */;
|
productReference = A979F6022D270AF00094C0B3 /* NearFutureWidgetsExtension.appex */;
|
||||||
productType = "com.apple.product-type.app-extension";
|
productType = "com.apple.product-type.app-extension";
|
||||||
};
|
};
|
||||||
A980FC362D93FB2B006A778F /* NearFutureTests */ = {
|
|
||||||
isa = PBXNativeTarget;
|
|
||||||
buildConfigurationList = A980FC3D2D93FB2B006A778F /* Build configuration list for PBXNativeTarget "NearFutureTests" */;
|
|
||||||
buildPhases = (
|
|
||||||
A980FC332D93FB2B006A778F /* Sources */,
|
|
||||||
A980FC342D93FB2B006A778F /* Frameworks */,
|
|
||||||
A980FC352D93FB2B006A778F /* Resources */,
|
|
||||||
);
|
|
||||||
buildRules = (
|
|
||||||
);
|
|
||||||
dependencies = (
|
|
||||||
A980FC3C2D93FB2B006A778F /* PBXTargetDependency */,
|
|
||||||
);
|
|
||||||
name = NearFutureTests;
|
|
||||||
packageProductDependencies = (
|
|
||||||
);
|
|
||||||
productName = NearFutureTests;
|
|
||||||
productReference = A980FC372D93FB2B006A778F /* NearFutureTests.xctest */;
|
|
||||||
productType = "com.apple.product-type.bundle.unit-test";
|
|
||||||
};
|
|
||||||
/* End PBXNativeTarget section */
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
/* Begin PBXProject section */
|
/* Begin PBXProject section */
|
||||||
@@ -376,19 +456,18 @@
|
|||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
attributes = {
|
attributes = {
|
||||||
BuildIndependentTargetsInParallel = 1;
|
BuildIndependentTargetsInParallel = 1;
|
||||||
LastSwiftUpdateCheck = 1620;
|
LastSwiftUpdateCheck = 1640;
|
||||||
LastUpgradeCheck = 1630;
|
LastUpgradeCheck = 1630;
|
||||||
TargetAttributes = {
|
TargetAttributes = {
|
||||||
|
A90D49252DDE0FA400781124 = {
|
||||||
|
CreatedOnToolsVersion = 16.4;
|
||||||
|
};
|
||||||
A920C2832D24011300E4F9B1 = {
|
A920C2832D24011300E4F9B1 = {
|
||||||
CreatedOnToolsVersion = 15.4;
|
CreatedOnToolsVersion = 15.4;
|
||||||
};
|
};
|
||||||
A979F6012D270AF00094C0B3 = {
|
A979F6012D270AF00094C0B3 = {
|
||||||
CreatedOnToolsVersion = 15.4;
|
CreatedOnToolsVersion = 15.4;
|
||||||
};
|
};
|
||||||
A980FC362D93FB2B006A778F = {
|
|
||||||
CreatedOnToolsVersion = 16.2;
|
|
||||||
TestTargetID = A920C2832D24011300E4F9B1;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
buildConfigurationList = A920C27F2D24011300E4F9B1 /* Build configuration list for PBXProject "NearFuture" */;
|
buildConfigurationList = A920C27F2D24011300E4F9B1 /* Build configuration list for PBXProject "NearFuture" */;
|
||||||
@@ -401,24 +480,34 @@
|
|||||||
);
|
);
|
||||||
mainGroup = A920C27B2D24011300E4F9B1;
|
mainGroup = A920C27B2D24011300E4F9B1;
|
||||||
packageReferences = (
|
packageReferences = (
|
||||||
A920C2BC2D24021900E4F9B1 /* XCRemoteSwiftPackageReference "SFSymbolsPicker" */,
|
|
||||||
);
|
);
|
||||||
productRefGroup = A920C2852D24011400E4F9B1 /* Products */;
|
productRefGroup = A920C2852D24011400E4F9B1 /* Products */;
|
||||||
projectDirPath = "";
|
projectDirPath = "";
|
||||||
projectRoot = "";
|
projectRoot = "";
|
||||||
targets = (
|
targets = (
|
||||||
A920C2832D24011300E4F9B1 /* NearFuture */,
|
A920C2832D24011300E4F9B1 /* NearFuture */,
|
||||||
|
A90D49252DDE0FA400781124 /* MacNearFuture */,
|
||||||
A979F6012D270AF00094C0B3 /* NearFutureWidgetsExtension */,
|
A979F6012D270AF00094C0B3 /* NearFutureWidgetsExtension */,
|
||||||
A980FC362D93FB2B006A778F /* NearFutureTests */,
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/* End PBXProject section */
|
/* End PBXProject section */
|
||||||
|
|
||||||
/* Begin PBXResourcesBuildPhase section */
|
/* Begin PBXResourcesBuildPhase section */
|
||||||
|
A90D49242DDE0FA400781124 /* Resources */ = {
|
||||||
|
isa = PBXResourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
A90D49452DDE1C7600781124 /* Tints.xcassets in Resources */,
|
||||||
|
A90D493E2DDE10CF00781124 /* Assets.xcassets in Resources */,
|
||||||
|
A90D493D2DDE10B200781124 /* NearFutureIcon.png in Resources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
A920C2822D24011300E4F9B1 /* Resources */ = {
|
A920C2822D24011300E4F9B1 /* Resources */ = {
|
||||||
isa = PBXResourcesBuildPhase;
|
isa = PBXResourcesBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
|
A90D49442DDE1C7600781124 /* Tints.xcassets in Resources */,
|
||||||
A920C2922D24011A00E4F9B1 /* Preview Assets.xcassets in Resources */,
|
A920C2922D24011A00E4F9B1 /* Preview Assets.xcassets in Resources */,
|
||||||
A949F8322DCAAA8A0064DCA0 /* NearFutureIcon.png in Resources */,
|
A949F8322DCAAA8A0064DCA0 /* NearFutureIcon.png in Resources */,
|
||||||
A920C28E2D24011A00E4F9B1 /* Assets.xcassets in Resources */,
|
A920C28E2D24011A00E4F9B1 /* Assets.xcassets in Resources */,
|
||||||
@@ -429,37 +518,74 @@
|
|||||||
isa = PBXResourcesBuildPhase;
|
isa = PBXResourcesBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
|
A90D49462DDE1C7A00781124 /* Tints.xcassets in Resources */,
|
||||||
A979F6102D270AF90094C0B3 /* Assets.xcassets in Resources */,
|
A979F6102D270AF90094C0B3 /* Assets.xcassets in Resources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
A980FC352D93FB2B006A778F /* Resources */ = {
|
|
||||||
isa = PBXResourcesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
/* End PBXResourcesBuildPhase section */
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXSourcesBuildPhase section */
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
|
A90D49222DDE0FA400781124 /* Sources */ = {
|
||||||
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
A91EF80E2DFC9A0C00B8463D /* WhatsNewView.swift in Sources */,
|
||||||
|
A91EF8192DFD77BF00B8463D /* SymbolsLoader.swift in Sources */,
|
||||||
|
A95E9EE42DFC77D400ED655F /* ImportView.swift in Sources */,
|
||||||
|
A9BAC6892DFF242300EC8E44 /* CompleteEventButton.swift in Sources */,
|
||||||
|
A91EF80C2DFC910000B8463D /* ViewModifiers.swift in Sources */,
|
||||||
|
A95E9ED92DFC742B00ED655F /* AccentIcon.swift in Sources */,
|
||||||
|
A91EF8102DFCB66C00B8463D /* SettingsView.swift in Sources */,
|
||||||
|
A90D495E2DDE3C7400781124 /* NFCommands.swift in Sources */,
|
||||||
|
A95E9EE52DFC77E200ED655F /* ExportView.swift in Sources */,
|
||||||
|
A91EF8132DFCC87D00B8463D /* EditEventView.swift in Sources */,
|
||||||
|
A91EF8142DFCC87D00B8463D /* AddEventView.swift in Sources */,
|
||||||
|
A9D1C34D2DFE10FA00703C2D /* EventListView.swift in Sources */,
|
||||||
|
A98C20D42DE7339E0008D61C /* AboutView.swift in Sources */,
|
||||||
|
A98C20CE2DE7308E0008D61C /* ArchiveView.swift in Sources */,
|
||||||
|
A98C20D02DE731BD0008D61C /* HomeView.swift in Sources */,
|
||||||
|
A90D495B2DDE2EDB00781124 /* MacNearFutureApp.swift in Sources */,
|
||||||
|
A91EF8082DFC8B8B00B8463D /* ColorCodable.swift in Sources */,
|
||||||
|
A90D49522DDE2D0000781124 /* Extensions.swift in Sources */,
|
||||||
|
A91EF81D2DFD796600B8463D /* SymbolsPicker.swift in Sources */,
|
||||||
|
A90D49422DDE114100781124 /* Events.swift in Sources */,
|
||||||
|
A90D49382DDE0FAF00781124 /* ContentViewMac.swift in Sources */,
|
||||||
|
A90D49622DDE626300781124 /* Settings.swift in Sources */,
|
||||||
|
A95E9ED32DFC703200ED655F /* iCloudSettingsView.swift in Sources */,
|
||||||
|
A96609E72DFD800000DBFA78 /* HelpView.swift in Sources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
A920C2802D24011300E4F9B1 /* Sources */ = {
|
A920C2802D24011300E4F9B1 /* Sources */ = {
|
||||||
isa = PBXSourcesBuildPhase;
|
isa = PBXSourcesBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
A920C28C2D24011400E4F9B1 /* Item.swift in Sources */,
|
A920C28C2D24011400E4F9B1 /* Events.swift in Sources */,
|
||||||
A949F84B2DCAABE00064DCA0 /* ArchiveView.swift in Sources */,
|
A949F84B2DCAABE00064DCA0 /* ArchiveView.swift in Sources */,
|
||||||
|
A914FA4F2DD276D200856265 /* AboutView.swift in Sources */,
|
||||||
A949F84C2DCAABE00064DCA0 /* AddEventView.swift in Sources */,
|
A949F84C2DCAABE00064DCA0 /* AddEventView.swift in Sources */,
|
||||||
|
A914FA4B2DD26C6800856265 /* HomeView.swift in Sources */,
|
||||||
A949F84D2DCAABE00064DCA0 /* EditEventView.swift in Sources */,
|
A949F84D2DCAABE00064DCA0 /* EditEventView.swift in Sources */,
|
||||||
A949F84E2DCAABE00064DCA0 /* ContentView.swift in Sources */,
|
A949F84E2DCAABE00064DCA0 /* ContentView.swift in Sources */,
|
||||||
|
A90D49612DDE626300781124 /* Settings.swift in Sources */,
|
||||||
|
A90D495F2DDE3C7400781124 /* NFCommands.swift in Sources */,
|
||||||
A949F84F2DCAABE00064DCA0 /* EventListView.swift in Sources */,
|
A949F84F2DCAABE00064DCA0 /* EventListView.swift in Sources */,
|
||||||
|
A91EF8092DFC8B8B00B8463D /* ColorCodable.swift in Sources */,
|
||||||
A949F8502DCAABE00064DCA0 /* HelpView.swift in Sources */,
|
A949F8502DCAABE00064DCA0 /* HelpView.swift in Sources */,
|
||||||
A949F85F2DCABB420064DCA0 /* Buttons.swift in Sources */,
|
A949F85F2DCABB420064DCA0 /* Buttons.swift in Sources */,
|
||||||
|
A914FA4D2DD2768900856265 /* WhatsNewView.swift in Sources */,
|
||||||
|
A91EF80B2DFC910000B8463D /* ViewModifiers.swift in Sources */,
|
||||||
A949F8512DCAABE00064DCA0 /* ExportView.swift in Sources */,
|
A949F8512DCAABE00064DCA0 /* ExportView.swift in Sources */,
|
||||||
|
A95E9ED82DFC742B00ED655F /* AccentIcon.swift in Sources */,
|
||||||
|
A90D49532DDE2D0000781124 /* Extensions.swift in Sources */,
|
||||||
A949F8522DCAABE00064DCA0 /* iCloudSettingsView.swift in Sources */,
|
A949F8522DCAABE00064DCA0 /* iCloudSettingsView.swift in Sources */,
|
||||||
|
A9BAC6882DFF242300EC8E44 /* CompleteEventButton.swift in Sources */,
|
||||||
A949F8532DCAABE00064DCA0 /* ImportView.swift in Sources */,
|
A949F8532DCAABE00064DCA0 /* ImportView.swift in Sources */,
|
||||||
A949F8542DCAABE00064DCA0 /* SettingsView.swift in Sources */,
|
A949F8542DCAABE00064DCA0 /* SettingsView.swift in Sources */,
|
||||||
|
A91EF81E2DFD796600B8463D /* SymbolsPicker.swift in Sources */,
|
||||||
A949F8552DCAABE00064DCA0 /* StatsView.swift in Sources */,
|
A949F8552DCAABE00064DCA0 /* StatsView.swift in Sources */,
|
||||||
|
A91EF81A2DFD77BF00B8463D /* SymbolsLoader.swift in Sources */,
|
||||||
A920C2882D24011400E4F9B1 /* NearFutureApp.swift in Sources */,
|
A920C2882D24011400E4F9B1 /* NearFutureApp.swift in Sources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
@@ -468,19 +594,16 @@
|
|||||||
isa = PBXSourcesBuildPhase;
|
isa = PBXSourcesBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
A979F6182D2714310094C0B3 /* Item.swift in Sources */,
|
A979F6182D2714310094C0B3 /* Events.swift in Sources */,
|
||||||
|
A91EF81C2DFD796600B8463D /* SymbolsPicker.swift in Sources */,
|
||||||
A979F60A2D270AF00094C0B3 /* NearFutureWidgetsBundle.swift in Sources */,
|
A979F60A2D270AF00094C0B3 /* NearFutureWidgetsBundle.swift in Sources */,
|
||||||
|
A95E9EDA2DFC742B00ED655F /* AccentIcon.swift in Sources */,
|
||||||
|
A91EF80D2DFC910000B8463D /* ViewModifiers.swift in Sources */,
|
||||||
|
A91EF8182DFD77BF00B8463D /* SymbolsLoader.swift in Sources */,
|
||||||
|
A91EF8072DFC8B8B00B8463D /* ColorCodable.swift in Sources */,
|
||||||
A9FC7EEA2D2823920020D75B /* NearFutureWidgets.swift in Sources */,
|
A9FC7EEA2D2823920020D75B /* NearFutureWidgets.swift in Sources */,
|
||||||
A979F60C2D270AF00094C0B3 /* NearFutureWidgetsLiveActivity.swift in Sources */,
|
A979F60C2D270AF00094C0B3 /* NearFutureWidgetsLiveActivity.swift in Sources */,
|
||||||
);
|
A90D49632DDE626300781124 /* Settings.swift in Sources */,
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
A980FC332D93FB2B006A778F /* Sources */ = {
|
|
||||||
isa = PBXSourcesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
A949F8592DCAAD670064DCA0 /* NearFutureTests.swift in Sources */,
|
|
||||||
A949F8562DCAABE00064DCA0 /* ExportView.swift in Sources */,
|
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
@@ -493,19 +616,86 @@
|
|||||||
target = A979F6012D270AF00094C0B3 /* NearFutureWidgetsExtension */;
|
target = A979F6012D270AF00094C0B3 /* NearFutureWidgetsExtension */;
|
||||||
targetProxy = A979F6122D270AF90094C0B3 /* PBXContainerItemProxy */;
|
targetProxy = A979F6122D270AF90094C0B3 /* PBXContainerItemProxy */;
|
||||||
};
|
};
|
||||||
A980FC3C2D93FB2B006A778F /* PBXTargetDependency */ = {
|
A98C20D22DE732B10008D61C /* PBXTargetDependency */ = {
|
||||||
isa = PBXTargetDependency;
|
isa = PBXTargetDependency;
|
||||||
target = A920C2832D24011300E4F9B1 /* NearFuture */;
|
target = A979F6012D270AF00094C0B3 /* NearFutureWidgetsExtension */;
|
||||||
targetProxy = A980FC3B2D93FB2B006A778F /* PBXContainerItemProxy */;
|
targetProxy = A98C20D12DE732B10008D61C /* PBXContainerItemProxy */;
|
||||||
};
|
};
|
||||||
/* End PBXTargetDependency section */
|
/* End PBXTargetDependency section */
|
||||||
|
|
||||||
/* Begin XCBuildConfiguration section */
|
/* Begin XCBuildConfiguration section */
|
||||||
|
A90D49302DDE0FA600781124 /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
baseConfigurationReference = A90FDE222DC0D4310012790C /* Config.xcconfig */;
|
||||||
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "bloo blue green pink purple red yellow";
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||||
|
CODE_SIGN_ENTITLEMENTS = MacNearFuture/MacNearFuture.entitlements;
|
||||||
|
CODE_SIGN_STYLE = Automatic;
|
||||||
|
COMBINE_HIDPI_IMAGES = YES;
|
||||||
|
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
|
||||||
|
DEVELOPMENT_TEAM = 8JGND254B7;
|
||||||
|
ENABLE_HARDENED_RUNTIME = YES;
|
||||||
|
ENABLE_PREVIEWS = YES;
|
||||||
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
|
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
|
||||||
|
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/../Frameworks",
|
||||||
|
);
|
||||||
|
MACOSX_DEPLOYMENT_TARGET = 15;
|
||||||
|
MARKETING_VERSION = "$(VERSION)";
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = com.neon443.NearFuture;
|
||||||
|
PRODUCT_NAME = "Near Future";
|
||||||
|
REGISTER_APP_GROUPS = YES;
|
||||||
|
SDKROOT = macosx;
|
||||||
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
A90D49312DDE0FA600781124 /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
baseConfigurationReference = A90FDE222DC0D4310012790C /* Config.xcconfig */;
|
||||||
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "bloo blue green pink purple red yellow";
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||||
|
CODE_SIGN_ENTITLEMENTS = MacNearFuture/MacNearFuture.entitlements;
|
||||||
|
CODE_SIGN_STYLE = Automatic;
|
||||||
|
COMBINE_HIDPI_IMAGES = YES;
|
||||||
|
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
|
||||||
|
DEVELOPMENT_TEAM = 8JGND254B7;
|
||||||
|
ENABLE_HARDENED_RUNTIME = YES;
|
||||||
|
ENABLE_PREVIEWS = YES;
|
||||||
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
|
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
|
||||||
|
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/../Frameworks",
|
||||||
|
);
|
||||||
|
MACOSX_DEPLOYMENT_TARGET = 15;
|
||||||
|
MARKETING_VERSION = "$(VERSION)";
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = com.neon443.NearFuture;
|
||||||
|
PRODUCT_NAME = "Near Future";
|
||||||
|
REGISTER_APP_GROUPS = YES;
|
||||||
|
SDKROOT = macosx;
|
||||||
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
A920C2A92D24011B00E4F9B1 /* Debug */ = {
|
A920C2A92D24011B00E4F9B1 /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "Bloo Blue Green Pink Purple Red Yellow";
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||||
|
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
|
||||||
CLANG_ANALYZER_NONNULL = YES;
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
||||||
@@ -565,7 +755,7 @@
|
|||||||
);
|
);
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
SWIFT_VERSION = 6.0;
|
SWIFT_VERSION = 5.0;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
@@ -573,7 +763,10 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "Bloo Blue Green Pink Purple Red Yellow";
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||||
|
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
|
||||||
CLANG_ANALYZER_NONNULL = YES;
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
||||||
@@ -621,7 +814,7 @@
|
|||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
SWIFT_COMPILATION_MODE = wholemodule;
|
SWIFT_COMPILATION_MODE = wholemodule;
|
||||||
SWIFT_VERSION = 6.0;
|
SWIFT_VERSION = 5.0;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
@@ -629,8 +822,10 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
baseConfigurationReference = A90FDE222DC0D4310012790C /* Config.xcconfig */;
|
baseConfigurationReference = A90FDE222DC0D4310012790C /* Config.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "bloo blue green pink purple red yellow";
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||||
|
CLANG_USE_OPTIMIZATION_PROFILE = YES;
|
||||||
CODE_SIGN_ENTITLEMENTS = NearFuture/NearFuture.entitlements;
|
CODE_SIGN_ENTITLEMENTS = NearFuture/NearFuture.entitlements;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
|
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
|
||||||
@@ -640,9 +835,9 @@
|
|||||||
ENABLE_HARDENED_RUNTIME = NO;
|
ENABLE_HARDENED_RUNTIME = NO;
|
||||||
ENABLE_PREVIEWS = YES;
|
ENABLE_PREVIEWS = YES;
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
INFOPLIST_FILE = NearFuture/Info.plist;
|
INFOPLIST_KEY_CFBundleDisplayName = "Near Future";
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = "$(NAME)";
|
|
||||||
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO;
|
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO;
|
||||||
|
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
|
||||||
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
|
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
|
||||||
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
|
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
|
||||||
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
|
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
|
||||||
@@ -667,8 +862,8 @@
|
|||||||
REGISTER_APP_GROUPS = YES;
|
REGISTER_APP_GROUPS = YES;
|
||||||
SDKROOT = auto;
|
SDKROOT = auto;
|
||||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
||||||
SUPPORTS_MACCATALYST = YES;
|
SUPPORTS_MACCATALYST = NO;
|
||||||
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
|
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
|
||||||
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = YES;
|
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = YES;
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
@@ -680,8 +875,10 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
baseConfigurationReference = A90FDE222DC0D4310012790C /* Config.xcconfig */;
|
baseConfigurationReference = A90FDE222DC0D4310012790C /* Config.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "bloo blue green pink purple red yellow";
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||||
|
CLANG_USE_OPTIMIZATION_PROFILE = YES;
|
||||||
CODE_SIGN_ENTITLEMENTS = NearFuture/NearFuture.entitlements;
|
CODE_SIGN_ENTITLEMENTS = NearFuture/NearFuture.entitlements;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
|
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
|
||||||
@@ -691,9 +888,9 @@
|
|||||||
ENABLE_HARDENED_RUNTIME = NO;
|
ENABLE_HARDENED_RUNTIME = NO;
|
||||||
ENABLE_PREVIEWS = YES;
|
ENABLE_PREVIEWS = YES;
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
INFOPLIST_FILE = NearFuture/Info.plist;
|
INFOPLIST_KEY_CFBundleDisplayName = "Near Future";
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = "$(NAME)";
|
|
||||||
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO;
|
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO;
|
||||||
|
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
|
||||||
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
|
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
|
||||||
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
|
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
|
||||||
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
|
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
|
||||||
@@ -715,8 +912,8 @@
|
|||||||
REGISTER_APP_GROUPS = YES;
|
REGISTER_APP_GROUPS = YES;
|
||||||
SDKROOT = auto;
|
SDKROOT = auto;
|
||||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
||||||
SUPPORTS_MACCATALYST = YES;
|
SUPPORTS_MACCATALYST = NO;
|
||||||
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
|
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
|
||||||
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = YES;
|
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = YES;
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
@@ -730,12 +927,13 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||||
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
|
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
|
||||||
|
CLANG_USE_OPTIMIZATION_PROFILE = YES;
|
||||||
CODE_SIGN_ENTITLEMENTS = NearFutureWidgets/NearFutureWidgetsExtension.entitlements;
|
CODE_SIGN_ENTITLEMENTS = NearFutureWidgets/NearFutureWidgetsExtension.entitlements;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
|
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
|
||||||
DEVELOPMENT_TEAM = "$(TEAM_ID)";
|
DEVELOPMENT_TEAM = "$(TEAM_ID)";
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
INFOPLIST_FILE = NearFutureWidgets/Info.plist;
|
INFOPLIST_FILE = "$(SRCROOT)/NearFutureWidgets/Info.plist";
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = NearFutureWidgets;
|
INFOPLIST_KEY_CFBundleDisplayName = NearFutureWidgets;
|
||||||
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 17;
|
IPHONEOS_DEPLOYMENT_TARGET = 17;
|
||||||
@@ -755,8 +953,9 @@
|
|||||||
REGISTER_APP_GROUPS = YES;
|
REGISTER_APP_GROUPS = YES;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SKIP_INSTALL = YES;
|
SKIP_INSTALL = YES;
|
||||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
|
||||||
SUPPORTS_MACCATALYST = YES;
|
SUPPORTS_MACCATALYST = NO;
|
||||||
|
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
@@ -770,12 +969,13 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||||
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
|
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
|
||||||
|
CLANG_USE_OPTIMIZATION_PROFILE = YES;
|
||||||
CODE_SIGN_ENTITLEMENTS = NearFutureWidgets/NearFutureWidgetsExtension.entitlements;
|
CODE_SIGN_ENTITLEMENTS = NearFutureWidgets/NearFutureWidgetsExtension.entitlements;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
|
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
|
||||||
DEVELOPMENT_TEAM = "$(TEAM_ID)";
|
DEVELOPMENT_TEAM = "$(TEAM_ID)";
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
INFOPLIST_FILE = NearFutureWidgets/Info.plist;
|
INFOPLIST_FILE = "$(SRCROOT)/NearFutureWidgets/Info.plist";
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = NearFutureWidgets;
|
INFOPLIST_KEY_CFBundleDisplayName = NearFutureWidgets;
|
||||||
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 17;
|
IPHONEOS_DEPLOYMENT_TARGET = 17;
|
||||||
@@ -791,8 +991,9 @@
|
|||||||
REGISTER_APP_GROUPS = YES;
|
REGISTER_APP_GROUPS = YES;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SKIP_INSTALL = YES;
|
SKIP_INSTALL = YES;
|
||||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
|
||||||
SUPPORTS_MACCATALYST = YES;
|
SUPPORTS_MACCATALYST = NO;
|
||||||
|
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
@@ -801,61 +1002,18 @@
|
|||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
A980FC3E2D93FB2B006A778F /* Debug */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
baseConfigurationReference = A90FDE222DC0D4310012790C /* Config.xcconfig */;
|
|
||||||
buildSettings = {
|
|
||||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
|
||||||
CODE_SIGN_STYLE = Automatic;
|
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 16;
|
|
||||||
MACOSX_DEPLOYMENT_TARGET = 13;
|
|
||||||
MARKETING_VERSION = 1.0;
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = dev.neon443.NearFutureTests;
|
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
||||||
SDKROOT = auto;
|
|
||||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
|
||||||
SUPPORTS_MACCATALYST = NO;
|
|
||||||
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
|
|
||||||
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = YES;
|
|
||||||
SWIFT_EMIT_LOC_STRINGS = NO;
|
|
||||||
SWIFT_VERSION = 5.0;
|
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
|
||||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NearFuture.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/NearFuture";
|
|
||||||
XROS_DEPLOYMENT_TARGET = 1;
|
|
||||||
};
|
|
||||||
name = Debug;
|
|
||||||
};
|
|
||||||
A980FC3F2D93FB2B006A778F /* Release */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
baseConfigurationReference = A90FDE222DC0D4310012790C /* Config.xcconfig */;
|
|
||||||
buildSettings = {
|
|
||||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
|
||||||
CODE_SIGN_STYLE = Automatic;
|
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 16;
|
|
||||||
MACOSX_DEPLOYMENT_TARGET = 13;
|
|
||||||
MARKETING_VERSION = 1.0;
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = dev.neon443.NearFutureTests;
|
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
||||||
SDKROOT = auto;
|
|
||||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
|
||||||
SUPPORTS_MACCATALYST = NO;
|
|
||||||
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
|
|
||||||
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = YES;
|
|
||||||
SWIFT_EMIT_LOC_STRINGS = NO;
|
|
||||||
SWIFT_VERSION = 5.0;
|
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
|
||||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NearFuture.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/NearFuture";
|
|
||||||
XROS_DEPLOYMENT_TARGET = 1;
|
|
||||||
};
|
|
||||||
name = Release;
|
|
||||||
};
|
|
||||||
/* End XCBuildConfiguration section */
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
/* Begin XCConfigurationList section */
|
/* Begin XCConfigurationList section */
|
||||||
|
A90D492F2DDE0FA600781124 /* Build configuration list for PBXNativeTarget "MacNearFuture" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
A90D49302DDE0FA600781124 /* Debug */,
|
||||||
|
A90D49312DDE0FA600781124 /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
A920C27F2D24011300E4F9B1 /* Build configuration list for PBXProject "NearFuture" */ = {
|
A920C27F2D24011300E4F9B1 /* Build configuration list for PBXProject "NearFuture" */ = {
|
||||||
isa = XCConfigurationList;
|
isa = XCConfigurationList;
|
||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
@@ -883,35 +1041,7 @@
|
|||||||
defaultConfigurationIsVisible = 0;
|
defaultConfigurationIsVisible = 0;
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
A980FC3D2D93FB2B006A778F /* Build configuration list for PBXNativeTarget "NearFutureTests" */ = {
|
|
||||||
isa = XCConfigurationList;
|
|
||||||
buildConfigurations = (
|
|
||||||
A980FC3E2D93FB2B006A778F /* Debug */,
|
|
||||||
A980FC3F2D93FB2B006A778F /* Release */,
|
|
||||||
);
|
|
||||||
defaultConfigurationIsVisible = 0;
|
|
||||||
defaultConfigurationName = Release;
|
|
||||||
};
|
|
||||||
/* End XCConfigurationList section */
|
/* End XCConfigurationList section */
|
||||||
|
|
||||||
/* Begin XCRemoteSwiftPackageReference section */
|
|
||||||
A920C2BC2D24021900E4F9B1 /* XCRemoteSwiftPackageReference "SFSymbolsPicker" */ = {
|
|
||||||
isa = XCRemoteSwiftPackageReference;
|
|
||||||
repositoryURL = "https://github.com/alessiorubicini/SFSymbolsPicker";
|
|
||||||
requirement = {
|
|
||||||
kind = upToNextMajorVersion;
|
|
||||||
minimumVersion = 1.0.6;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
/* End XCRemoteSwiftPackageReference section */
|
|
||||||
|
|
||||||
/* Begin XCSwiftPackageProductDependency section */
|
|
||||||
A920C2BD2D24021A00E4F9B1 /* SFSymbolsPicker */ = {
|
|
||||||
isa = XCSwiftPackageProductDependency;
|
|
||||||
package = A920C2BC2D24021900E4F9B1 /* XCRemoteSwiftPackageReference "SFSymbolsPicker" */;
|
|
||||||
productName = SFSymbolsPicker;
|
|
||||||
};
|
|
||||||
/* End XCSwiftPackageProductDependency section */
|
|
||||||
};
|
};
|
||||||
rootObject = A920C27C2D24011300E4F9B1 /* Project object */;
|
rootObject = A920C27C2D24011300E4F9B1 /* Project object */;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"originHash" : "19df39f99b22f4ef95b73ed292ffb0c8d7694dd4c9db2b96ea73b091b7b1a026",
|
|
||||||
"pins" : [
|
|
||||||
{
|
|
||||||
"identity" : "sfsymbolspicker",
|
|
||||||
"kind" : "remoteSourceControl",
|
|
||||||
"location" : "https://github.com/alessiorubicini/SFSymbolsPicker",
|
|
||||||
"state" : {
|
|
||||||
"revision" : "73c909b8a7fc77a30dd04208e33f759f8b52c4c8",
|
|
||||||
"version" : "1.0.6"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"version" : 3
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Scheme
|
<Scheme
|
||||||
LastUpgradeVersion = "1630"
|
LastUpgradeVersion = "1640"
|
||||||
version = "1.7">
|
version = "1.7">
|
||||||
<BuildAction
|
<BuildAction
|
||||||
parallelizeBuildables = "YES"
|
parallelizeBuildables = "YES"
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
buildForAnalyzing = "YES">
|
buildForAnalyzing = "YES">
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = "primary"
|
BuildableIdentifier = "primary"
|
||||||
BlueprintIdentifier = "A920C2832D24011300E4F9B1"
|
BlueprintIdentifier = "A90D49252DDE0FA400781124"
|
||||||
BuildableName = "NearFuture.app"
|
BuildableName = "Near Future.app"
|
||||||
BlueprintName = "NearFuture"
|
BlueprintName = "MacNearFuture"
|
||||||
ReferencedContainer = "container:NearFuture.xcodeproj">
|
ReferencedContainer = "container:NearFuture.xcodeproj">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</BuildActionEntry>
|
</BuildActionEntry>
|
||||||
@@ -32,8 +32,8 @@
|
|||||||
</TestAction>
|
</TestAction>
|
||||||
<LaunchAction
|
<LaunchAction
|
||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = ""
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
launchStyle = "0"
|
launchStyle = "0"
|
||||||
useCustomWorkingDirectory = "NO"
|
useCustomWorkingDirectory = "NO"
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
@@ -44,9 +44,9 @@
|
|||||||
runnableDebuggingMode = "0">
|
runnableDebuggingMode = "0">
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = "primary"
|
BuildableIdentifier = "primary"
|
||||||
BlueprintIdentifier = "A920C2832D24011300E4F9B1"
|
BlueprintIdentifier = "A90D49252DDE0FA400781124"
|
||||||
BuildableName = "NearFuture.app"
|
BuildableName = "Near Future.app"
|
||||||
BlueprintName = "NearFuture"
|
BlueprintName = "MacNearFuture"
|
||||||
ReferencedContainer = "container:NearFuture.xcodeproj">
|
ReferencedContainer = "container:NearFuture.xcodeproj">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</BuildableProductRunnable>
|
</BuildableProductRunnable>
|
||||||
@@ -61,9 +61,9 @@
|
|||||||
runnableDebuggingMode = "0">
|
runnableDebuggingMode = "0">
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = "primary"
|
BuildableIdentifier = "primary"
|
||||||
BlueprintIdentifier = "A920C2832D24011300E4F9B1"
|
BlueprintIdentifier = "A90D49252DDE0FA400781124"
|
||||||
BuildableName = "NearFuture.app"
|
BuildableName = "Near Future.app"
|
||||||
BlueprintName = "NearFuture"
|
BlueprintName = "MacNearFuture"
|
||||||
ReferencedContainer = "container:NearFuture.xcodeproj">
|
ReferencedContainer = "container:NearFuture.xcodeproj">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</BuildableProductRunnable>
|
</BuildableProductRunnable>
|
||||||
@@ -4,24 +4,29 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>SchemeUserState</key>
|
<key>SchemeUserState</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>NearFuture nodebug.xcscheme_^#shared#^_</key>
|
<key>MacNearFuture.xcscheme_^#shared#^_</key>
|
||||||
<dict>
|
|
||||||
<key>orderHint</key>
|
|
||||||
<integer>2</integer>
|
|
||||||
</dict>
|
|
||||||
<key>NearFuture.xcscheme_^#shared#^_</key>
|
|
||||||
<dict>
|
<dict>
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
</dict>
|
</dict>
|
||||||
<key>NearFutureWidgetsExtension.xcscheme_^#shared#^_</key>
|
<key>NearFuture.xcscheme_^#shared#^_</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>0</integer>
|
<integer>0</integer>
|
||||||
</dict>
|
</dict>
|
||||||
|
<key>NearFutureWidgetsExtension.xcscheme_^#shared#^_</key>
|
||||||
|
<dict>
|
||||||
|
<key>orderHint</key>
|
||||||
|
<integer>2</integer>
|
||||||
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
<key>SuppressBuildableAutocreation</key>
|
<key>SuppressBuildableAutocreation</key>
|
||||||
<dict>
|
<dict>
|
||||||
|
<key>A90D49252DDE0FA400781124</key>
|
||||||
|
<dict>
|
||||||
|
<key>primary</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
<key>A920C2832D24011300E4F9B1</key>
|
<key>A920C2832D24011300E4F9B1</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>primary</key>
|
<key>primary</key>
|
||||||
|
|||||||
@@ -1,169 +0,0 @@
|
|||||||
//
|
|
||||||
// EventListView.swift
|
|
||||||
// NearFuture
|
|
||||||
//
|
|
||||||
// Created by neon443 on 18/04/2025.
|
|
||||||
//
|
|
||||||
|
|
||||||
import SwiftUI
|
|
||||||
import SwiftData
|
|
||||||
|
|
||||||
struct EventListView: View {
|
|
||||||
@ObservedObject var viewModel: EventViewModel
|
|
||||||
@State var event: Event
|
|
||||||
|
|
||||||
var body: some View {
|
|
||||||
NavigationLink() {
|
|
||||||
EditEventView(
|
|
||||||
viewModel: viewModel,
|
|
||||||
event: $event
|
|
||||||
)
|
|
||||||
} label: {
|
|
||||||
ZStack {
|
|
||||||
HStack {
|
|
||||||
RoundedRectangle(cornerRadius: 5)
|
|
||||||
.frame(width: 7)
|
|
||||||
.foregroundStyle(
|
|
||||||
event.color.color.opacity(
|
|
||||||
event.complete ? 0.5 : 1
|
|
||||||
)
|
|
||||||
)
|
|
||||||
VStack(alignment: .leading) {
|
|
||||||
HStack {
|
|
||||||
Image(systemName: event.symbol)
|
|
||||||
.resizable()
|
|
||||||
.scaledToFit()
|
|
||||||
.frame(width: 20, height: 20)
|
|
||||||
.shadow(radius: 5)
|
|
||||||
.foregroundStyle(
|
|
||||||
.one.opacity(
|
|
||||||
event.complete ? 0.5 : 1
|
|
||||||
)
|
|
||||||
)
|
|
||||||
Text("\(event.name)")
|
|
||||||
.font(.headline)
|
|
||||||
.foregroundStyle(.one)
|
|
||||||
.strikethrough(event.complete)
|
|
||||||
.multilineTextAlignment(.leading)
|
|
||||||
}
|
|
||||||
if !event.notes.isEmpty {
|
|
||||||
Text(event.notes)
|
|
||||||
.font(.subheadline)
|
|
||||||
.foregroundStyle(.one.opacity(0.8))
|
|
||||||
.multilineTextAlignment(.leading)
|
|
||||||
}
|
|
||||||
Text(
|
|
||||||
event.date.formatted(
|
|
||||||
date: .long,
|
|
||||||
time: .shortened
|
|
||||||
)
|
|
||||||
)
|
|
||||||
.font(.subheadline)
|
|
||||||
.foregroundStyle(
|
|
||||||
.one.opacity(
|
|
||||||
event.complete ? 0.5 : 1
|
|
||||||
)
|
|
||||||
)
|
|
||||||
if event.recurrence != .none {
|
|
||||||
Text("Occurs \(event.recurrence.rawValue)")
|
|
||||||
.font(.subheadline)
|
|
||||||
.foregroundStyle(
|
|
||||||
.one.opacity(event.complete ? 0.5 : 1))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Spacer()
|
|
||||||
VStack {
|
|
||||||
Text("\(daysUntilEvent(event.date).long)")
|
|
||||||
.font(.subheadline)
|
|
||||||
.foregroundStyle(.one)
|
|
||||||
}
|
|
||||||
Button() {
|
|
||||||
withAnimation {
|
|
||||||
event.complete.toggle()
|
|
||||||
}
|
|
||||||
let eventToModify = viewModel.events.firstIndex() { currEvent in
|
|
||||||
currEvent.id == event.id
|
|
||||||
}
|
|
||||||
if let eventToModify = eventToModify {
|
|
||||||
viewModel.events[eventToModify] = event
|
|
||||||
viewModel.saveEvents()
|
|
||||||
}
|
|
||||||
} label: {
|
|
||||||
if event.complete {
|
|
||||||
ZStack {
|
|
||||||
Circle()
|
|
||||||
.foregroundStyle(.green)
|
|
||||||
Image(systemName: "checkmark")
|
|
||||||
.resizable()
|
|
||||||
.foregroundStyle(.white)
|
|
||||||
.scaledToFit()
|
|
||||||
.bold()
|
|
||||||
.frame(width: 15)
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
Image(systemName: "circle")
|
|
||||||
.resizable()
|
|
||||||
.scaledToFit()
|
|
||||||
.foregroundStyle(event.color.color)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.buttonStyle(.borderless)
|
|
||||||
.frame(maxWidth: 25, maxHeight: 25)
|
|
||||||
.shadow(radius: 5)
|
|
||||||
.padding(.trailing, 5)
|
|
||||||
}
|
|
||||||
.padding(.vertical, 5)
|
|
||||||
.background(.ultraThinMaterial)
|
|
||||||
.overlay(
|
|
||||||
RoundedRectangle(cornerRadius: 10)
|
|
||||||
.stroke(
|
|
||||||
.one.opacity(appearance == .dark ? 0.5 : 1),
|
|
||||||
lineWidth: 1
|
|
||||||
)
|
|
||||||
)
|
|
||||||
.clipShape(
|
|
||||||
RoundedRectangle(cornerRadius: 10)
|
|
||||||
)
|
|
||||||
.fixedSize(horizontal: false, vertical: true)
|
|
||||||
}
|
|
||||||
.contextMenu() {
|
|
||||||
Button(role: .destructive) {
|
|
||||||
let eventToModify = viewModel.events.firstIndex() { currEvent in
|
|
||||||
currEvent.id == event.id
|
|
||||||
}
|
|
||||||
if let eventToModify = eventToModify {
|
|
||||||
viewModel.events.remove(at: eventToModify)
|
|
||||||
viewModel.saveEvents()
|
|
||||||
}
|
|
||||||
} label: {
|
|
||||||
Label("Delete", systemImage: "trash")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#Preview("EventListView") {
|
|
||||||
let vm = dummyEventViewModel()
|
|
||||||
ZStack {
|
|
||||||
Color.black
|
|
||||||
VStack {
|
|
||||||
ForEach(0..<50) { _ in
|
|
||||||
Rectangle()
|
|
||||||
.foregroundStyle(randomColor().opacity(0.5))
|
|
||||||
.padding(-10)
|
|
||||||
}
|
|
||||||
.ignoresSafeArea(.all)
|
|
||||||
.blur(radius: 5)
|
|
||||||
}
|
|
||||||
VStack {
|
|
||||||
ForEach(vm.events) { event in
|
|
||||||
EventListView(
|
|
||||||
viewModel: vm,
|
|
||||||
event: event
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.padding(.horizontal, 10)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict/>
|
|
||||||
</plist>
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
//
|
|
||||||
// ArchiveHelp.swift
|
|
||||||
// NearFuture
|
|
||||||
//
|
|
||||||
// Created by neon443 on 26/04/2025.
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
import SwiftUI
|
|
||||||
|
|
||||||
enum HelpType {
|
|
||||||
case Search
|
|
||||||
case Archive
|
|
||||||
}
|
|
||||||
|
|
||||||
struct HelpView: View {
|
|
||||||
/// initialises a Search HelpView
|
|
||||||
///
|
|
||||||
init(searchInput: Binding<String>, focusedField: Field?) {
|
|
||||||
_searchInput = searchInput
|
|
||||||
self.helpType = .Search
|
|
||||||
_showAddEvent = .constant(false)
|
|
||||||
}
|
|
||||||
|
|
||||||
/// initialises an Archive HelpView
|
|
||||||
///
|
|
||||||
init(showAddEvent: Binding<Bool>) {
|
|
||||||
_showAddEvent = showAddEvent
|
|
||||||
self.helpType = .Archive
|
|
||||||
_searchInput = .constant("")
|
|
||||||
self.focusedField = nil
|
|
||||||
}
|
|
||||||
|
|
||||||
@Binding var searchInput: String
|
|
||||||
@FocusState var focusedField: Field?
|
|
||||||
|
|
||||||
@Binding var showAddEvent: Bool
|
|
||||||
|
|
||||||
var helpType: HelpType
|
|
||||||
var details: (
|
|
||||||
symbol: String,
|
|
||||||
title: String,
|
|
||||||
body: String,
|
|
||||||
buttonAction: () -> (),
|
|
||||||
buttonSymbol: String,
|
|
||||||
buttonText: String
|
|
||||||
) {
|
|
||||||
switch helpType {
|
|
||||||
case .Search:
|
|
||||||
return (
|
|
||||||
symbol: "questionmark.app.dashed",
|
|
||||||
title: "Looking for something?",
|
|
||||||
body: "Tip: The Search bar searches event names and notes.",
|
|
||||||
buttonAction: {
|
|
||||||
searchInput = ""
|
|
||||||
focusedField = nil
|
|
||||||
},
|
|
||||||
buttonSymbol: "xmark",
|
|
||||||
buttonText: "Clear Filters"
|
|
||||||
)
|
|
||||||
case .Archive:
|
|
||||||
return (
|
|
||||||
symbol: "eyes",
|
|
||||||
title: "Nothing to see here...",
|
|
||||||
body: "The Archive contains events that have been marked as complete.",
|
|
||||||
buttonAction: {
|
|
||||||
showAddEvent.toggle()
|
|
||||||
},
|
|
||||||
buttonSymbol: "plus",
|
|
||||||
buttonText: "Create an event"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var body: some View {
|
|
||||||
List {
|
|
||||||
ZStack {
|
|
||||||
Color(.tintColor)
|
|
||||||
.opacity(0.4)
|
|
||||||
.padding(.horizontal, -15)
|
|
||||||
.blur(radius: 5)
|
|
||||||
HStack {
|
|
||||||
Image(systemName: details.symbol)
|
|
||||||
.resizable()
|
|
||||||
.scaledToFit()
|
|
||||||
.frame(width: 30, height: 30)
|
|
||||||
.padding(.trailing)
|
|
||||||
Text(details.title)
|
|
||||||
.bold()
|
|
||||||
.font(.title2)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.listRowSeparator(.hidden)
|
|
||||||
Text(details.body)
|
|
||||||
Button() {
|
|
||||||
details.buttonAction()
|
|
||||||
} label: {
|
|
||||||
HStack {
|
|
||||||
Image(systemName: details.buttonSymbol)
|
|
||||||
.bold()
|
|
||||||
Text(details.buttonText)
|
|
||||||
}
|
|
||||||
.foregroundStyle(Color.accentColor)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.scrollContentBackground(.hidden)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#Preview {
|
|
||||||
HelpView(searchInput: .constant(""), focusedField: nil)
|
|
||||||
HelpView(showAddEvent: .constant(false))
|
|
||||||
}
|
|
||||||
@@ -2,10 +2,6 @@
|
|||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>aps-environment</key>
|
|
||||||
<string>development</string>
|
|
||||||
<key>com.apple.developer.aps-environment</key>
|
|
||||||
<string>development</string>
|
|
||||||
<key>com.apple.developer.icloud-container-identifiers</key>
|
<key>com.apple.developer.icloud-container-identifiers</key>
|
||||||
<array/>
|
<array/>
|
||||||
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
|
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
//
|
|
||||||
// NearFutureApp.swift
|
|
||||||
// NearFuture
|
|
||||||
//
|
|
||||||
// Created by Nihaal Sharma on 24/12/2024.
|
|
||||||
//
|
|
||||||
|
|
||||||
import SwiftUI
|
|
||||||
import SwiftData
|
|
||||||
|
|
||||||
@main
|
|
||||||
struct NearFutureApp: App {
|
|
||||||
// var sharedModelContainer: ModelContainer = {
|
|
||||||
// let schema = Schema([
|
|
||||||
// Item.self,
|
|
||||||
// ])
|
|
||||||
// let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false)
|
|
||||||
//
|
|
||||||
// do {
|
|
||||||
// return try ModelContainer(for: schema, configurations: [modelConfiguration])
|
|
||||||
// } catch {
|
|
||||||
// fatalError("Could not create ModelContainer: \(error)")
|
|
||||||
// }
|
|
||||||
// }()
|
|
||||||
@StateObject var settingsModel: SettingsViewModel = SettingsViewModel()
|
|
||||||
var body: some Scene {
|
|
||||||
WindowGroup {
|
|
||||||
ContentView(
|
|
||||||
viewModel: EventViewModel(),
|
|
||||||
settingsModel: settingsModel
|
|
||||||
)
|
|
||||||
.tint(settingsModel.settings.tint.color)
|
|
||||||
}
|
|
||||||
// .modelContainer(sharedModelContainer)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
//
|
|
||||||
// AppIntent.swift
|
|
||||||
// NearFutureWidgets
|
|
||||||
//
|
|
||||||
// Created by Nihaal Sharma on 02/01/2025.
|
|
||||||
//
|
|
||||||
|
|
||||||
import WidgetKit
|
|
||||||
import AppIntents
|
|
||||||
|
|
||||||
struct ConfigurationAppIntent: WidgetConfigurationIntent {
|
|
||||||
static var title: LocalizedStringResource = "Configuration"
|
|
||||||
static var description = IntentDescription("This is an example widget.")
|
|
||||||
|
|
||||||
// An example configurable parameter.
|
|
||||||
@Parameter(title: "Favorite Emoji", default: "😃")
|
|
||||||
var favoriteEmoji: String
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"colors" : [
|
|
||||||
{
|
|
||||||
"idiom" : "universal"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"info" : {
|
|
||||||
"author" : "xcode",
|
|
||||||
"version" : 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"images" : [
|
|
||||||
{
|
|
||||||
"idiom" : "universal",
|
|
||||||
"platform" : "ios",
|
|
||||||
"size" : "1024x1024"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"info" : {
|
|
||||||
"author" : "xcode",
|
|
||||||
"version" : 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"colors" : [
|
|
||||||
{
|
|
||||||
"idiom" : "universal"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"info" : {
|
|
||||||
"author" : "xcode",
|
|
||||||
"version" : 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>NSExtension</key>
|
|
||||||
<dict>
|
|
||||||
<key>NSExtensionPointIdentifier</key>
|
|
||||||
<string>com.apple.widgetkit-extension</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
//
|
|
||||||
// NearFutureWidgets.swift
|
|
||||||
// NearFutureWidgets
|
|
||||||
//
|
|
||||||
// Created by Nihaal Sharma on 02/01/2025.
|
|
||||||
//
|
|
||||||
|
|
||||||
import WidgetKit
|
|
||||||
import SwiftUI
|
|
||||||
|
|
||||||
struct Provider: AppIntentTimelineProvider {
|
|
||||||
func placeholder(in context: Context) -> SimpleEntry {
|
|
||||||
SimpleEntry(date: Date(), configuration: ConfigurationAppIntent())
|
|
||||||
}
|
|
||||||
|
|
||||||
func snapshot(for configuration: ConfigurationAppIntent, in context: Context) async -> SimpleEntry {
|
|
||||||
SimpleEntry(date: Date(), configuration: configuration)
|
|
||||||
}
|
|
||||||
|
|
||||||
func timeline(for configuration: ConfigurationAppIntent, in context: Context) async -> Timeline<SimpleEntry> {
|
|
||||||
var entries: [SimpleEntry] = []
|
|
||||||
|
|
||||||
// Generate a timeline consisting of five entries an hour apart, starting from the current date.
|
|
||||||
let currentDate = Date()
|
|
||||||
for hourOffset in 0 ..< 5 {
|
|
||||||
let entryDate = Calendar.current.date(byAdding: .hour, value: hourOffset, to: currentDate)!
|
|
||||||
let entry = SimpleEntry(date: entryDate, configuration: configuration)
|
|
||||||
entries.append(entry)
|
|
||||||
}
|
|
||||||
|
|
||||||
return Timeline(entries: entries, policy: .atEnd)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct SimpleEntry: TimelineEntry {
|
|
||||||
let date: Date
|
|
||||||
let configuration: ConfigurationAppIntent
|
|
||||||
}
|
|
||||||
|
|
||||||
struct NearFutureWidgetsEntryView : View {
|
|
||||||
var entry: Provider.Entry
|
|
||||||
|
|
||||||
var body: some View {
|
|
||||||
VStack {
|
|
||||||
Text("Time:")
|
|
||||||
Text(entry.date, style: .time)
|
|
||||||
|
|
||||||
Text("Favorite Emoji:")
|
|
||||||
Text(entry.configuration.favoriteEmoji)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct NearFutureWidgets: Widget {
|
|
||||||
let kind: String = "NearFutureWidgets"
|
|
||||||
|
|
||||||
var body: some WidgetConfiguration {
|
|
||||||
AppIntentConfiguration(kind: kind, intent: ConfigurationAppIntent.self, provider: Provider()) { entry in
|
|
||||||
NearFutureWidgetsEntryView(entry: entry)
|
|
||||||
.containerBackground(.fill.tertiary, for: .widget)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
extension ConfigurationAppIntent {
|
|
||||||
fileprivate static var smiley: ConfigurationAppIntent {
|
|
||||||
let intent = ConfigurationAppIntent()
|
|
||||||
intent.favoriteEmoji = "😀"
|
|
||||||
return intent
|
|
||||||
}
|
|
||||||
|
|
||||||
fileprivate static var starEyes: ConfigurationAppIntent {
|
|
||||||
let intent = ConfigurationAppIntent()
|
|
||||||
intent.favoriteEmoji = "🤩"
|
|
||||||
return intent
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#Preview(as: .systemSmall) {
|
|
||||||
NearFutureWidgets()
|
|
||||||
} timeline: {
|
|
||||||
SimpleEntry(date: .now, configuration: .smiley)
|
|
||||||
SimpleEntry(date: .now, configuration: .starEyes)
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
//
|
|
||||||
// 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()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
//
|
|
||||||
// NearFutureWidgetsLiveActivity.swift
|
|
||||||
// NearFutureWidgets
|
|
||||||
//
|
|
||||||
// Created by Nihaal Sharma on 02/01/2025.
|
|
||||||
//
|
|
||||||
|
|
||||||
import ActivityKit
|
|
||||||
import WidgetKit
|
|
||||||
import SwiftUI
|
|
||||||
|
|
||||||
struct NearFutureWidgetsAttributes: ActivityAttributes {
|
|
||||||
public struct ContentState: Codable, Hashable {
|
|
||||||
// Dynamic stateful properties about your activity go here!
|
|
||||||
var emoji: String
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fixed non-changing properties about your activity go here!
|
|
||||||
var name: String
|
|
||||||
}
|
|
||||||
|
|
||||||
struct NearFutureWidgetsLiveActivity: Widget {
|
|
||||||
var body: some WidgetConfiguration {
|
|
||||||
ActivityConfiguration(for: NearFutureWidgetsAttributes.self) { context in
|
|
||||||
// Lock screen/banner UI goes here
|
|
||||||
VStack {
|
|
||||||
Text("Hello \(context.state.emoji)")
|
|
||||||
}
|
|
||||||
.activityBackgroundTint(Color.cyan)
|
|
||||||
.activitySystemActionForegroundColor(Color.black)
|
|
||||||
|
|
||||||
} dynamicIsland: { context in
|
|
||||||
DynamicIsland {
|
|
||||||
// Expanded UI goes here. Compose the expanded UI through
|
|
||||||
// various regions, like leading/trailing/center/bottom
|
|
||||||
DynamicIslandExpandedRegion(.leading) {
|
|
||||||
Text("Leading")
|
|
||||||
}
|
|
||||||
DynamicIslandExpandedRegion(.trailing) {
|
|
||||||
Text("Trailing")
|
|
||||||
}
|
|
||||||
DynamicIslandExpandedRegion(.bottom) {
|
|
||||||
Text("Bottom \(context.state.emoji)")
|
|
||||||
// more content
|
|
||||||
}
|
|
||||||
} compactLeading: {
|
|
||||||
Text("L")
|
|
||||||
} compactTrailing: {
|
|
||||||
Text("T \(context.state.emoji)")
|
|
||||||
} minimal: {
|
|
||||||
Text(context.state.emoji)
|
|
||||||
}
|
|
||||||
.widgetURL(URL(string: "http://www.apple.com"))
|
|
||||||
.keylineTint(Color.red)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
extension NearFutureWidgetsAttributes {
|
|
||||||
fileprivate static var preview: NearFutureWidgetsAttributes {
|
|
||||||
NearFutureWidgetsAttributes(name: "World")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
extension NearFutureWidgetsAttributes.ContentState {
|
|
||||||
fileprivate static var smiley: NearFutureWidgetsAttributes.ContentState {
|
|
||||||
NearFutureWidgetsAttributes.ContentState(emoji: "😀")
|
|
||||||
}
|
|
||||||
|
|
||||||
fileprivate static var starEyes: NearFutureWidgetsAttributes.ContentState {
|
|
||||||
NearFutureWidgetsAttributes.ContentState(emoji: "🤩")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#Preview("Notification", as: .content, using: NearFutureWidgetsAttributes.preview) {
|
|
||||||
NearFutureWidgetsLiveActivity()
|
|
||||||
} contentStates: {
|
|
||||||
NearFutureWidgetsAttributes.ContentState.smiley
|
|
||||||
NearFutureWidgetsAttributes.ContentState.starEyes
|
|
||||||
}
|
|
||||||
@@ -10,7 +10,10 @@ import SwiftUI
|
|||||||
struct ArchiveView: View {
|
struct ArchiveView: View {
|
||||||
@ObservedObject var viewModel: EventViewModel
|
@ObservedObject var viewModel: EventViewModel
|
||||||
@State var showAddEvent: Bool = false
|
@State var showAddEvent: Bool = false
|
||||||
@State var hey: UUID = UUID()
|
var filteredEvents: [Event] {
|
||||||
|
let filteredEvents = viewModel.events.filter({$0.complete})
|
||||||
|
return filteredEvents.reversed()
|
||||||
|
}
|
||||||
var body: some View {
|
var body: some View {
|
||||||
NavigationStack {
|
NavigationStack {
|
||||||
ZStack {
|
ZStack {
|
||||||
@@ -19,51 +22,42 @@ struct ArchiveView: View {
|
|||||||
HelpView(showAddEvent: $showAddEvent)
|
HelpView(showAddEvent: $showAddEvent)
|
||||||
} else {
|
} else {
|
||||||
ScrollView {
|
ScrollView {
|
||||||
ForEach(viewModel.events.filter({$0.complete})) { event in
|
ForEach(filteredEvents) { event in
|
||||||
EventListView(viewModel: viewModel, event: event)
|
NavigationLink() {
|
||||||
|
EditEventView(
|
||||||
|
viewModel: viewModel,
|
||||||
|
event: Binding(
|
||||||
|
get: { event },
|
||||||
|
set: { newValue in
|
||||||
|
viewModel.editEvent(newValue)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
} label: {
|
||||||
|
EventListView(viewModel: viewModel, event: event)
|
||||||
|
.id(event.complete)
|
||||||
|
}
|
||||||
|
.transition(.moveAndFadeReversed)
|
||||||
}
|
}
|
||||||
.padding(.horizontal)
|
.padding(.horizontal)
|
||||||
.id(hey)
|
|
||||||
.onReceive(viewModel.objectWillChange) {
|
|
||||||
hey = UUID()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
.animation(.default, value: filteredEvents)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.transition(.opacity)
|
||||||
.scrollContentBackground(.hidden)
|
.scrollContentBackground(.hidden)
|
||||||
.toolbar {
|
.toolbar {
|
||||||
ToolbarItem(placement: .topBarTrailing) {
|
ToolbarItem(placement: .primaryAction) {
|
||||||
AddEventButton(showingAddEventView: $showAddEvent)
|
AddEventButton(showingAddEventView: $showAddEvent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.navigationTitle("Archive")
|
.navigationTitle("Archive")
|
||||||
.apply {
|
.modifier(navigationInlineLarge())
|
||||||
if #available(iOS 17, *) {
|
|
||||||
$0.toolbarTitleDisplayMode(.inlineLarge)
|
|
||||||
} else {
|
|
||||||
$0.navigationBarTitleDisplayMode(.inline)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.sheet(isPresented: $showAddEvent) {
|
.sheet(isPresented: $showAddEvent) {
|
||||||
AddEventView(
|
AddEventView(
|
||||||
viewModel: viewModel,
|
viewModel: viewModel
|
||||||
eventName: $viewModel.editableTemplate.name,
|
|
||||||
eventComplete: $viewModel.editableTemplate.complete,
|
|
||||||
eventCompleteDesc: $viewModel.editableTemplate.completeDesc,
|
|
||||||
eventSymbol: $viewModel.editableTemplate.symbol,
|
|
||||||
eventColor: $viewModel.editableTemplate.color.colorBind,
|
|
||||||
eventNotes: $viewModel.editableTemplate.notes,
|
|
||||||
eventDate: $viewModel.editableTemplate.date,
|
|
||||||
eventRecurrence: $viewModel.editableTemplate.recurrence,
|
|
||||||
adding: true
|
|
||||||
)
|
)
|
||||||
.presentationDragIndicator(.visible)
|
|
||||||
.apply {
|
|
||||||
if #available(iOS 16.4, *) {
|
|
||||||
$0.presentationBackground(.ultraThinMaterial)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -71,5 +65,3 @@ struct ArchiveView: View {
|
|||||||
#Preview {
|
#Preview {
|
||||||
ArchiveView(viewModel: dummyEventViewModel())
|
ArchiveView(viewModel: dummyEventViewModel())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
69
NearFuture/Views/ContentView.swift
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
//
|
||||||
|
// ContentView.swift
|
||||||
|
// NearFuture
|
||||||
|
//
|
||||||
|
// Created by neon443 on 24/12/2024.
|
||||||
|
//
|
||||||
|
|
||||||
|
import SwiftUI
|
||||||
|
import UserNotifications
|
||||||
|
import SwiftData
|
||||||
|
|
||||||
|
enum Tab {
|
||||||
|
case home
|
||||||
|
case archive
|
||||||
|
case symbols
|
||||||
|
case stats
|
||||||
|
case settings
|
||||||
|
}
|
||||||
|
|
||||||
|
struct ContentView: View {
|
||||||
|
@StateObject var viewModel: EventViewModel
|
||||||
|
@StateObject var settingsModel: SettingsViewModel
|
||||||
|
@State var tabSelection: Tab = .home
|
||||||
|
|
||||||
|
var body: some View {
|
||||||
|
TabView(selection: $tabSelection) {
|
||||||
|
HomeView(viewModel: viewModel, settingsModel: settingsModel)
|
||||||
|
.tabItem {
|
||||||
|
Label("Home", systemImage: "house")
|
||||||
|
}
|
||||||
|
.tag(Tab.home)
|
||||||
|
ArchiveView(viewModel: viewModel)
|
||||||
|
.tabItem() {
|
||||||
|
Label("Archive", systemImage: "tray.full")
|
||||||
|
}
|
||||||
|
.tag(Tab.archive)
|
||||||
|
SymbolsPicker(
|
||||||
|
selection: .constant(""),
|
||||||
|
browsing: true
|
||||||
|
)
|
||||||
|
.tabItem {
|
||||||
|
Label("Symbols", systemImage: "star.circle")
|
||||||
|
}
|
||||||
|
.tag(Tab.symbols)
|
||||||
|
StatsView(viewModel: viewModel)
|
||||||
|
// SymbolsPickerStoryboardUIViewRepresentable()
|
||||||
|
.tabItem {
|
||||||
|
Label("Statistics", systemImage: "chart.pie")
|
||||||
|
}
|
||||||
|
.tag(Tab.stats)
|
||||||
|
SettingsView(viewModel: viewModel, settingsModel: settingsModel)
|
||||||
|
.tabItem {
|
||||||
|
Label("Settings", systemImage: "gear")
|
||||||
|
}
|
||||||
|
.tag(Tab.settings)
|
||||||
|
}
|
||||||
|
.modifier(hapticHeavy(trigger: tabSelection))
|
||||||
|
.sheet(isPresented: $settingsModel.settings.showWhatsNew) {
|
||||||
|
WhatsNewView(settingsModel: settingsModel)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#Preview {
|
||||||
|
ContentView(
|
||||||
|
viewModel: dummyEventViewModel(),
|
||||||
|
settingsModel: dummySettingsViewModel()
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -2,27 +2,21 @@
|
|||||||
// AddEventView.swift
|
// AddEventView.swift
|
||||||
// NearFuture
|
// NearFuture
|
||||||
//
|
//
|
||||||
// Created by Nihaal Sharma on 25/12/2024.
|
// Created by neon443 on 25/12/2024.
|
||||||
//
|
//
|
||||||
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import SFSymbolsPicker
|
|
||||||
|
|
||||||
struct AddEventView: View {
|
struct AddEventView: View {
|
||||||
@ObservedObject var viewModel: EventViewModel
|
@ObservedObject var viewModel: EventViewModel
|
||||||
|
|
||||||
@Binding var eventName: String
|
@State var event: Event = dummyEventViewModel().template
|
||||||
@Binding var eventComplete: Bool
|
|
||||||
@Binding var eventCompleteDesc: String
|
|
||||||
@Binding var eventSymbol: String
|
|
||||||
@Binding var eventColor: Color
|
|
||||||
@Binding var eventNotes: String
|
|
||||||
@Binding var eventDate: Date
|
|
||||||
@Binding var eventRecurrence: Event.RecurrenceType
|
|
||||||
|
|
||||||
@State var adding: Bool
|
@State var adding: Bool = true
|
||||||
@State var showNeedsNameAlert: Bool = false
|
@State var showNeedsNameAlert: Bool = false
|
||||||
@State var isSymbolPickerPresented = false
|
@State var isSymbolPickerPresented: Bool = false
|
||||||
|
|
||||||
|
@State private var bye: Bool = false
|
||||||
|
|
||||||
@FocusState private var focusedField: Field?
|
@FocusState private var focusedField: Field?
|
||||||
private enum Field {
|
private enum Field {
|
||||||
@@ -31,186 +25,177 @@ struct AddEventView: View {
|
|||||||
|
|
||||||
@Environment(\.dismiss) var dismiss
|
@Environment(\.dismiss) var dismiss
|
||||||
|
|
||||||
|
var isMac: Bool {
|
||||||
|
if #available(iOS 1, *) {
|
||||||
|
return false
|
||||||
|
} else {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
NavigationStack {
|
ZStack {
|
||||||
Form {
|
if !adding {
|
||||||
Section(
|
backgroundGradient
|
||||||
header:
|
}
|
||||||
Text("Event Details")
|
NavigationStack {
|
||||||
.font(.headline)
|
List {
|
||||||
.foregroundColor(.accentColor)
|
Section(
|
||||||
) {
|
header:
|
||||||
// name & symbol
|
Text("Event Details")
|
||||||
HStack(spacing: 5) {
|
.font(.headline)
|
||||||
Button() {
|
.foregroundColor(.accentColor)
|
||||||
isSymbolPickerPresented.toggle()
|
) {
|
||||||
} label: {
|
// name & symbol
|
||||||
Image(systemName: eventSymbol)
|
HStack(spacing: 5) {
|
||||||
.resizable()
|
Button() {
|
||||||
.scaledToFit()
|
isSymbolPickerPresented.toggle()
|
||||||
.frame(width: 20, height: 20)
|
} label: {
|
||||||
.foregroundStyle(eventColor)
|
Image(systemName: event.symbol)
|
||||||
}
|
.resizable()
|
||||||
.frame(width: 20)
|
.scaledToFit()
|
||||||
.buttonStyle(.borderless)
|
.frame(width: 20, height: 20)
|
||||||
.sheet(isPresented: $isSymbolPickerPresented) {
|
.foregroundStyle(event.color.color)
|
||||||
SymbolsPicker(
|
|
||||||
selection: $eventSymbol,
|
|
||||||
title: "Choose a Symbol",
|
|
||||||
searchLabel: "Search...",
|
|
||||||
autoDismiss: true)
|
|
||||||
.presentationDetents([.medium])
|
|
||||||
.apply {
|
|
||||||
if #available(iOS 16.4, *) {
|
|
||||||
$0.presentationBackground(.ultraThinMaterial)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
.frame(width: 20)
|
||||||
|
.buttonStyle(.borderless)
|
||||||
|
.sheet(isPresented: $isSymbolPickerPresented) {
|
||||||
|
SymbolsPicker(
|
||||||
|
selection: $event.symbol
|
||||||
|
)
|
||||||
|
.presentationDetents([.medium])
|
||||||
|
.modifier(presentationSizeForm())
|
||||||
|
}
|
||||||
|
TextField("Event Name", text: $event.name)
|
||||||
|
.textFieldStyle(.roundedBorder)
|
||||||
}
|
}
|
||||||
ColorPicker("", selection: $eventColor, supportsOpacity: false)
|
|
||||||
.fixedSize()
|
// dscription
|
||||||
ZStack {
|
ZStack {
|
||||||
TextField("Event Name", text: $eventName)
|
TextField("Event Notes", text: $event.notes)
|
||||||
.textFieldStyle(RoundedBorderTextFieldStyle())
|
.textFieldStyle(RoundedBorderTextFieldStyle())
|
||||||
.padding(.trailing, eventName.isEmpty ? 0 : 30)
|
.padding(.trailing, event.notes.isEmpty ? 0 : 30)
|
||||||
.animation(.spring, value: eventName)
|
.animation(.spring, value: event.notes)
|
||||||
.focused($focusedField, equals: Field.Name)
|
.focused($focusedField, equals: Field.Notes)
|
||||||
.submitLabel(.next)
|
.submitLabel(.done)
|
||||||
.onSubmit {
|
.onSubmit {
|
||||||
focusedField = .Notes
|
focusedField = nil
|
||||||
}
|
}
|
||||||
MagicClearButton(text: $eventName)
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
ColorPicker("Event Color", selection: $event.color.colorBind)
|
||||||
// dscription
|
|
||||||
ZStack {
|
// date picker
|
||||||
TextField("Event Notes", text: $eventNotes)
|
HStack {
|
||||||
.textFieldStyle(RoundedBorderTextFieldStyle())
|
Spacer()
|
||||||
.padding(.trailing, eventNotes.isEmpty ? 0 : 30)
|
DatePicker("", selection: $event.date, displayedComponents: .date)
|
||||||
.animation(.spring, value: eventNotes)
|
#if os(iOS)
|
||||||
.focused($focusedField, equals: Field.Notes)
|
.datePickerStyle(.wheel)
|
||||||
.submitLabel(.done)
|
#else
|
||||||
.onSubmit {
|
.datePickerStyle(.graphical)
|
||||||
focusedField = nil
|
#endif
|
||||||
|
Spacer()
|
||||||
|
Button() {
|
||||||
|
event.date = Date()
|
||||||
|
} label: {
|
||||||
|
Image(systemName: "arrow.uturn.left")
|
||||||
|
.resizable()
|
||||||
|
.scaledToFit()
|
||||||
}
|
}
|
||||||
MagicClearButton(text: $eventNotes)
|
.buttonStyle(BorderlessButtonStyle())
|
||||||
}
|
.frame(width: 20)
|
||||||
|
|
||||||
|
|
||||||
// date picker
|
|
||||||
HStack {
|
|
||||||
Spacer()
|
|
||||||
DatePicker("", selection: $eventDate, displayedComponents: .date)
|
|
||||||
.datePickerStyle(WheelDatePickerStyle())
|
|
||||||
Spacer()
|
|
||||||
Button() {
|
|
||||||
eventDate = Date()
|
|
||||||
} label: {
|
|
||||||
Image(systemName: "arrow.uturn.left")
|
|
||||||
.resizable()
|
|
||||||
.scaledToFit()
|
|
||||||
}
|
}
|
||||||
.buttonStyle(BorderlessButtonStyle())
|
|
||||||
.frame(width: 20)
|
|
||||||
}
|
|
||||||
|
|
||||||
DatePicker(
|
DatePicker(
|
||||||
"",
|
"",
|
||||||
selection: $eventDate,
|
selection: $event.date,
|
||||||
displayedComponents: .hourAndMinute
|
displayedComponents: .hourAndMinute
|
||||||
)
|
)
|
||||||
|
#if os(macOS)
|
||||||
// re-ocurrence Picker
|
.datePickerStyle(.stepperField)
|
||||||
Picker("Recurrence", selection: $eventRecurrence) {
|
#endif
|
||||||
ForEach(Event.RecurrenceType.allCases, id: \.self) { recurrence in
|
|
||||||
Text(recurrence.rawValue.capitalized)
|
// re-ocurrence Picker
|
||||||
|
Picker("Recurrence", selection: $event.recurrence) {
|
||||||
|
ForEach(Event.RecurrenceType.allCases, id: \.self) { recurrence in
|
||||||
|
Text(recurrence.rawValue.capitalized)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
.pickerStyle(SegmentedPickerStyle())
|
||||||
.pickerStyle(SegmentedPickerStyle())
|
Text(
|
||||||
Text(
|
describeOccurrence(
|
||||||
describeOccurrence(
|
date: event.date,
|
||||||
date: eventDate,
|
recurrence: event.recurrence
|
||||||
recurrence: eventRecurrence
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.scrollContentBackground(.hidden)
|
|
||||||
.navigationTitle("\(adding ? "Add Event" : "")")
|
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
|
||||||
.toolbar {
|
|
||||||
ToolbarItem(placement: .topBarLeading) {
|
|
||||||
if adding {
|
|
||||||
Button() {
|
|
||||||
resetAddEventView()
|
|
||||||
dismiss()
|
|
||||||
} label: {
|
|
||||||
Image(systemName: "xmark.circle.fill")
|
|
||||||
.symbolRenderingMode(.hierarchical)
|
|
||||||
.resizable()
|
|
||||||
.scaledToFit()
|
|
||||||
.frame(width: 30)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ToolbarItem(placement: .topBarTrailing) {
|
|
||||||
if adding {
|
|
||||||
Button {
|
|
||||||
viewModel.addEvent(
|
|
||||||
newEvent: Event(
|
|
||||||
name: eventName,
|
|
||||||
complete: eventComplete,
|
|
||||||
completeDesc: eventCompleteDesc,
|
|
||||||
symbol: eventSymbol,
|
|
||||||
color: ColorCodable(eventColor),
|
|
||||||
notes: eventNotes,
|
|
||||||
date: eventDate,
|
|
||||||
recurrence: eventRecurrence
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
resetAddEventView()
|
)
|
||||||
} label: {
|
}
|
||||||
Text("Save")
|
}
|
||||||
.font(.headline)
|
.navigationTitle("\(adding ? "Add Event" : "")")
|
||||||
.cornerRadius(10)
|
.modifier(navigationInlineLarge())
|
||||||
.buttonStyle(BorderedProminentButtonStyle())
|
.toolbar {
|
||||||
}
|
ToolbarItem(placement: .cancellationAction) {
|
||||||
.disabled(eventName.isEmpty)
|
if adding {
|
||||||
.onTapGesture {
|
Button() {
|
||||||
if eventName.isEmpty {
|
resetAddEventView()
|
||||||
showNeedsNameAlert.toggle()
|
dismiss()
|
||||||
}
|
} label: {
|
||||||
}
|
Image(systemName: "xmark")
|
||||||
.alert("Missing Name", isPresented: $showNeedsNameAlert) {
|
.resizable()
|
||||||
Button("OK", role: .cancel) {
|
.scaledToFit()
|
||||||
showNeedsNameAlert.toggle()
|
.tint(.one)
|
||||||
focusedField = .Name
|
|
||||||
}
|
|
||||||
} message: {
|
|
||||||
Text("Give your Event a name before saving.")
|
|
||||||
}
|
|
||||||
if eventName.isEmpty {
|
|
||||||
HStack {
|
|
||||||
Image(systemName: "exclamationmark")
|
|
||||||
.foregroundStyle(.red)
|
|
||||||
Text("Give your event a name.")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ToolbarItem() {
|
||||||
|
if adding {
|
||||||
|
Button {
|
||||||
|
viewModel.addEvent(
|
||||||
|
newEvent: event
|
||||||
|
)
|
||||||
|
bye.toggle()
|
||||||
|
resetAddEventView()
|
||||||
|
} label: {
|
||||||
|
Label("Save", systemImage: "checkmark")
|
||||||
|
}
|
||||||
|
.tint(.accent)
|
||||||
|
.modifier(hapticSuccess(trigger: bye))
|
||||||
|
.disabled(event.name.isEmpty)
|
||||||
|
.onTapGesture {
|
||||||
|
if event.name.isEmpty {
|
||||||
|
showNeedsNameAlert.toggle()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.alert("Missing Name", isPresented: $showNeedsNameAlert) {
|
||||||
|
Button("OK", role: .cancel) {
|
||||||
|
showNeedsNameAlert.toggle()
|
||||||
|
focusedField = .Name
|
||||||
|
}
|
||||||
|
} message: {
|
||||||
|
Text("Give your Event a name before saving.")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ToolbarItem(placement: .confirmationAction) {
|
||||||
|
if !adding {
|
||||||
|
Button() {
|
||||||
|
viewModel.editEvent(event)
|
||||||
|
dismiss()
|
||||||
|
} label: {
|
||||||
|
Label("Done", systemImage: "checkmark")
|
||||||
|
}
|
||||||
|
.disabled(event.name == "")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
.navigationTitle("Editing \(event.name) - Ne")
|
||||||
}
|
}
|
||||||
|
.scrollContentBackground(isMac ? .automatic : .hidden)
|
||||||
|
.presentationDragIndicator(.visible)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func resetAddEventView() {
|
func resetAddEventView() {
|
||||||
//reset addeventView
|
//reset addeventView
|
||||||
eventName = viewModel.template.name
|
event = viewModel.template
|
||||||
eventComplete = viewModel.template.complete
|
|
||||||
eventCompleteDesc = viewModel.template.completeDesc
|
|
||||||
eventSymbol = viewModel.template.symbol
|
|
||||||
eventColor = randomColor()
|
|
||||||
eventNotes = viewModel.template.notes
|
|
||||||
eventDate = viewModel.template.date
|
|
||||||
eventRecurrence = viewModel.template.recurrence
|
|
||||||
dismiss()
|
dismiss()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -223,21 +208,7 @@ struct AddEventView: View {
|
|||||||
.sheet(isPresented: .constant(true)) {
|
.sheet(isPresented: .constant(true)) {
|
||||||
AddEventView(
|
AddEventView(
|
||||||
viewModel: vm,
|
viewModel: vm,
|
||||||
eventName: .constant(vm.template.notes),
|
|
||||||
eventComplete: .constant(vm.template.complete),
|
|
||||||
eventCompleteDesc: .constant(vm.template.completeDesc),
|
|
||||||
eventSymbol: .constant(vm.template.symbol),
|
|
||||||
eventColor: .constant(vm.template.color.color),
|
|
||||||
eventNotes: .constant(vm.template.notes),
|
|
||||||
eventDate: .constant(vm.template.date),
|
|
||||||
eventRecurrence: .constant(vm.template.recurrence),
|
|
||||||
adding: true
|
adding: true
|
||||||
)
|
)
|
||||||
.presentationDragIndicator(.visible)
|
|
||||||
.apply {
|
|
||||||
if #available(iOS 16.4, *) {
|
|
||||||
$0.presentationBackground(.ultraThinMaterial)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// EditEventView.swift
|
// EditEventView.swift
|
||||||
// NearFuture
|
// NearFuture
|
||||||
//
|
//
|
||||||
// Created by Nihaal Sharma on 02/01/2025.
|
// Created by neon443 on 02/01/2025.
|
||||||
//
|
//
|
||||||
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
@@ -12,44 +12,13 @@ struct EditEventView: View {
|
|||||||
@ObservedObject var viewModel: EventViewModel
|
@ObservedObject var viewModel: EventViewModel
|
||||||
@Binding var event: Event
|
@Binding var event: Event
|
||||||
|
|
||||||
fileprivate func saveEdits() {
|
|
||||||
//if there is an event in vM.events with the id of the event we r editing,
|
|
||||||
//firstindex - loops through the arr and finds first element where that events id matches editing event's id
|
|
||||||
if let index = viewModel.events.firstIndex(where: { xEvent in
|
|
||||||
xEvent.id == event.id
|
|
||||||
}) {
|
|
||||||
viewModel.events[index] = event
|
|
||||||
}
|
|
||||||
viewModel.saveEvents()
|
|
||||||
|
|
||||||
dismiss()
|
|
||||||
}
|
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
AddEventView(
|
AddEventView(
|
||||||
viewModel: viewModel,
|
viewModel: viewModel,
|
||||||
eventName: $event.name,
|
event: event,
|
||||||
eventComplete: $event.complete,
|
|
||||||
eventCompleteDesc: $event.completeDesc,
|
|
||||||
eventSymbol: $event.symbol,
|
|
||||||
eventColor: $event.color.colorBind,
|
|
||||||
eventNotes: $event.notes,
|
|
||||||
eventDate: $event.date,
|
|
||||||
eventRecurrence: $event.recurrence,
|
|
||||||
adding: false //bc we editing existing event
|
adding: false //bc we editing existing event
|
||||||
)
|
)
|
||||||
.navigationTitle("Edit Event")
|
.navigationTitle("Edit Event")
|
||||||
.toolbar {
|
|
||||||
ToolbarItem(placement: .topBarTrailing) {
|
|
||||||
Button() {
|
|
||||||
saveEdits()
|
|
||||||
} label: {
|
|
||||||
Text("Done")
|
|
||||||
.bold()
|
|
||||||
}
|
|
||||||
.disabled(event.name == "")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,189 +0,0 @@
|
|||||||
//
|
|
||||||
// ContentView.swift
|
|
||||||
// NearFuture
|
|
||||||
//
|
|
||||||
// Created by Nihaal Sharma on 24/12/2024.
|
|
||||||
//
|
|
||||||
|
|
||||||
import SwiftUI
|
|
||||||
import UserNotifications
|
|
||||||
import SwiftData
|
|
||||||
|
|
||||||
enum Field {
|
|
||||||
case Search
|
|
||||||
}
|
|
||||||
enum Tab {
|
|
||||||
case Home
|
|
||||||
case Archive
|
|
||||||
case Statistics
|
|
||||||
case Settings
|
|
||||||
case Gradient
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ContentView: View {
|
|
||||||
@StateObject var viewModel: EventViewModel
|
|
||||||
@StateObject var settingsModel: SettingsViewModel
|
|
||||||
@State private var eventName = ""
|
|
||||||
@State private var eventComplete = false
|
|
||||||
@State private var eventCompleteDesc = ""
|
|
||||||
@State private var eventSymbol = "star"
|
|
||||||
@State private var eventColor: Color = randomColor()
|
|
||||||
@State private var eventNotes = ""
|
|
||||||
@State private var eventDate = Date()
|
|
||||||
@State private var eventRecurrence: Event.RecurrenceType = .none
|
|
||||||
@State var hey: UUID = UUID()
|
|
||||||
@State private var showingAddEventView = false
|
|
||||||
@State private var searchInput: String = ""
|
|
||||||
var filteredEvents: [Event] {
|
|
||||||
if searchInput.isEmpty {
|
|
||||||
return viewModel.events.filter() {!$0.complete}
|
|
||||||
} else {
|
|
||||||
return viewModel.events.filter {
|
|
||||||
$0.name.localizedCaseInsensitiveContains(searchInput) ||
|
|
||||||
$0.notes.localizedCaseInsensitiveContains(searchInput)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var noEvents: Bool {
|
|
||||||
if viewModel.events.count == 0 {
|
|
||||||
return true
|
|
||||||
} else {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@FocusState private var focusedField: Field?
|
|
||||||
@FocusState private var focusedTab: Tab?
|
|
||||||
|
|
||||||
var body: some View {
|
|
||||||
TabView {
|
|
||||||
NavigationStack {
|
|
||||||
ZStack {
|
|
||||||
backgroundGradient
|
|
||||||
VStack {
|
|
||||||
ZStack {
|
|
||||||
TextField(
|
|
||||||
"\(Image(systemName: "magnifyingglass")) Search",
|
|
||||||
text: $searchInput
|
|
||||||
)
|
|
||||||
.padding(.trailing, searchInput.isEmpty ? 0 : 30)
|
|
||||||
.animation(.spring, value: searchInput)
|
|
||||||
.textFieldStyle(RoundedBorderTextFieldStyle())
|
|
||||||
.submitLabel(.done)
|
|
||||||
.focused($focusedField, equals: Field.Search)
|
|
||||||
.onSubmit {
|
|
||||||
focusedField = nil
|
|
||||||
}
|
|
||||||
MagicClearButton(text: $searchInput)
|
|
||||||
.onTapGesture {
|
|
||||||
focusedField = nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.padding(.horizontal)
|
|
||||||
|
|
||||||
if filteredEvents.isEmpty && !searchInput.isEmpty {
|
|
||||||
HelpView(searchInput: $searchInput, focusedField: focusedField)
|
|
||||||
} else {
|
|
||||||
ScrollView {
|
|
||||||
ForEach(filteredEvents) { event in
|
|
||||||
EventListView(viewModel: viewModel, event: event)
|
|
||||||
}
|
|
||||||
.onDelete(perform: viewModel.removeEvent)
|
|
||||||
.id(hey)
|
|
||||||
.onReceive(viewModel.objectWillChange) {
|
|
||||||
hey = UUID()
|
|
||||||
}
|
|
||||||
.padding(.horizontal)
|
|
||||||
if /*!searchInput.isEmpty && */filteredEvents.isEmpty {
|
|
||||||
HelpView(
|
|
||||||
searchInput: $searchInput,
|
|
||||||
focusedField: focusedField
|
|
||||||
)
|
|
||||||
}
|
|
||||||
Spacer()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.navigationTitle("Near Future")
|
|
||||||
.apply {
|
|
||||||
if #available(iOS 17, *) {
|
|
||||||
$0.toolbarTitleDisplayMode(.inlineLarge)
|
|
||||||
} else {
|
|
||||||
$0.navigationBarTitleDisplayMode(.inline)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.sheet(isPresented: $showingAddEventView) {
|
|
||||||
AddEventView(
|
|
||||||
viewModel: viewModel,
|
|
||||||
eventName: $eventName,
|
|
||||||
eventComplete: $eventComplete,
|
|
||||||
eventCompleteDesc: $eventCompleteDesc,
|
|
||||||
eventSymbol: $eventSymbol,
|
|
||||||
eventColor: $eventColor,
|
|
||||||
eventNotes: $eventNotes,
|
|
||||||
eventDate: $eventDate,
|
|
||||||
eventRecurrence: $eventRecurrence,
|
|
||||||
adding: true //adding event
|
|
||||||
)
|
|
||||||
.presentationDragIndicator(.visible)
|
|
||||||
.apply {
|
|
||||||
if #available(iOS 16.4, *) {
|
|
||||||
$0.presentationBackground(.ultraThinMaterial)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.toolbar {
|
|
||||||
ToolbarItem(placement: .topBarTrailing) {
|
|
||||||
AddEventButton(showingAddEventView: $showingAddEventView)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.tabItem {
|
|
||||||
Label("Home", systemImage: "house")
|
|
||||||
}
|
|
||||||
.focused($focusedTab, equals: Tab.Home)
|
|
||||||
ArchiveView(viewModel: viewModel)
|
|
||||||
.tabItem() {
|
|
||||||
Label("Archive", systemImage: "tray.full")
|
|
||||||
}
|
|
||||||
.focused($focusedTab, equals: Tab.Archive)
|
|
||||||
StatsView(viewModel: viewModel)
|
|
||||||
.tabItem {
|
|
||||||
Label("Statistics", systemImage: "chart.pie")
|
|
||||||
}
|
|
||||||
.focused($focusedTab, equals: Tab.Statistics)
|
|
||||||
SettingsView(viewModel: viewModel, settingsModel: settingsModel)
|
|
||||||
.tabItem {
|
|
||||||
Label("Settings", systemImage: "gear")
|
|
||||||
}
|
|
||||||
.focused($focusedTab, equals: Tab.Settings)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#Preview {
|
|
||||||
ContentView(
|
|
||||||
viewModel: dummyEventViewModel(),
|
|
||||||
settingsModel: dummySettingsViewModel()
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
extension View {
|
|
||||||
var appearance: ColorScheme {
|
|
||||||
return UITraitCollection.current.userInterfaceStyle == .dark ? .dark : .light
|
|
||||||
}
|
|
||||||
var backgroundGradient: some View {
|
|
||||||
return LinearGradient(
|
|
||||||
gradient: Gradient(colors: [.bgTop, .two]),
|
|
||||||
startPoint: .top,
|
|
||||||
endPoint: .bottom
|
|
||||||
)
|
|
||||||
.ignoresSafeArea(.all)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
extension View {
|
|
||||||
func apply<V: View>(@ViewBuilder _ block: (Self) -> V) -> V { block(self) }
|
|
||||||
}
|
|
||||||
@@ -12,135 +12,185 @@ struct EventListView: View {
|
|||||||
@ObservedObject var viewModel: EventViewModel
|
@ObservedObject var viewModel: EventViewModel
|
||||||
@State var event: Event
|
@State var event: Event
|
||||||
|
|
||||||
|
@Environment(\.openWindow) var openWindow
|
||||||
|
|
||||||
|
@State var hovering: Bool = false
|
||||||
|
|
||||||
|
#if canImport(AppKit)
|
||||||
var body: some View {
|
var body: some View {
|
||||||
NavigationLink() {
|
ZStack {
|
||||||
EditEventView(
|
Color.black.opacity(hovering ? 0.5 : 0.0)
|
||||||
viewModel: viewModel,
|
HStack {
|
||||||
event: $event
|
RoundedRectangle(cornerRadius: 5)
|
||||||
)
|
.frame(width: 7)
|
||||||
} label: {
|
.foregroundStyle(
|
||||||
ZStack {
|
event.color.color.opacity(
|
||||||
HStack {
|
event.complete ? 0.5 : 1
|
||||||
RoundedRectangle(cornerRadius: 5)
|
|
||||||
.frame(width: 7)
|
|
||||||
.foregroundStyle(
|
|
||||||
event.color.color.opacity(
|
|
||||||
event.complete ? 0.5 : 1
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
VStack(alignment: .leading) {
|
)
|
||||||
HStack {
|
VStack(alignment: .leading) {
|
||||||
Image(systemName: event.symbol)
|
HStack {
|
||||||
.resizable()
|
Image(systemName: event.symbol)
|
||||||
.scaledToFit()
|
.resizable()
|
||||||
.frame(width: 20, height: 20)
|
.scaledToFit()
|
||||||
.shadow(radius: 5)
|
.frame(width: 20, height: 20)
|
||||||
.foregroundStyle(
|
.shadow(radius: 5)
|
||||||
.one.opacity(
|
.foregroundStyle(
|
||||||
event.complete ? 0.5 : 1
|
.one.opacity(
|
||||||
)
|
event.complete ? 0.5 : 1
|
||||||
)
|
)
|
||||||
Text("\(event.name)")
|
|
||||||
.font(.headline)
|
|
||||||
.foregroundStyle(.one)
|
|
||||||
.strikethrough(event.complete)
|
|
||||||
.multilineTextAlignment(.leading)
|
|
||||||
}
|
|
||||||
if !event.notes.isEmpty {
|
|
||||||
Text(event.notes)
|
|
||||||
.font(.subheadline)
|
|
||||||
.foregroundStyle(.one.opacity(0.8))
|
|
||||||
.multilineTextAlignment(.leading)
|
|
||||||
}
|
|
||||||
Text(
|
|
||||||
event.date.formatted(
|
|
||||||
date: .long,
|
|
||||||
time: .shortened
|
|
||||||
)
|
)
|
||||||
|
Text("\(event.name)")
|
||||||
|
.bold()
|
||||||
|
.foregroundStyle(.one)
|
||||||
|
.strikethrough(event.complete)
|
||||||
|
.multilineTextAlignment(.leading)
|
||||||
|
}
|
||||||
|
if !event.notes.isEmpty {
|
||||||
|
Text(event.notes)
|
||||||
|
.foregroundStyle(.one.opacity(0.8))
|
||||||
|
.multilineTextAlignment(.leading)
|
||||||
|
}
|
||||||
|
Text(
|
||||||
|
event.date.formatted(
|
||||||
|
date: .long,
|
||||||
|
time: .shortened
|
||||||
)
|
)
|
||||||
.font(.subheadline)
|
)
|
||||||
|
.foregroundStyle(
|
||||||
|
.one.opacity(
|
||||||
|
event.complete ? 0.5 : 1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
if event.recurrence != .none {
|
||||||
|
Text("Occurs \(event.recurrence.rawValue)")
|
||||||
|
.font(.subheadline)
|
||||||
|
.foregroundStyle(
|
||||||
|
.one.opacity(event.complete ? 0.5 : 1))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Spacer()
|
||||||
|
VStack {
|
||||||
|
Text("\(daysUntilEvent(event.date).long)")
|
||||||
|
.multilineTextAlignment(.trailing)
|
||||||
|
.foregroundStyle(event.date.timeIntervalSinceNow < 0 ? .red : .one)
|
||||||
|
}
|
||||||
|
CompleteEventButton(
|
||||||
|
viewModel: viewModel,
|
||||||
|
event: $event
|
||||||
|
)
|
||||||
|
}
|
||||||
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
|
}
|
||||||
|
.onHover { isHovering in
|
||||||
|
withAnimation {
|
||||||
|
hovering.toggle()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.onTapGesture {
|
||||||
|
openWindow(value: event.id)
|
||||||
|
}
|
||||||
|
.contextMenu() {
|
||||||
|
Button(role: .destructive) {
|
||||||
|
let eventToModify = viewModel.events.firstIndex() { currEvent in
|
||||||
|
currEvent.id == event.id
|
||||||
|
}
|
||||||
|
if let eventToModify = eventToModify {
|
||||||
|
viewModel.events.remove(at: eventToModify)
|
||||||
|
viewModel.saveEvents()
|
||||||
|
}
|
||||||
|
} label: {
|
||||||
|
Label("Delete", systemImage: "trash")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
var body: some View {
|
||||||
|
HStack {
|
||||||
|
RoundedRectangle(cornerRadius: 5)
|
||||||
|
.frame(width: 7)
|
||||||
|
.foregroundStyle(
|
||||||
|
event.color.color.opacity(
|
||||||
|
event.complete ? 0.5 : 1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
VStack(alignment: .leading) {
|
||||||
|
HStack {
|
||||||
|
Image(systemName: event.symbol)
|
||||||
|
.resizable()
|
||||||
|
.scaledToFit()
|
||||||
|
.frame(width: 20, height: 20)
|
||||||
|
.shadow(radius: 5)
|
||||||
.foregroundStyle(
|
.foregroundStyle(
|
||||||
.one.opacity(
|
.one.opacity(
|
||||||
event.complete ? 0.5 : 1
|
event.complete ? 0.5 : 1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
if event.recurrence != .none {
|
Text("\(event.name)")
|
||||||
Text("Occurs \(event.recurrence.rawValue)")
|
.font(.headline)
|
||||||
.font(.subheadline)
|
.foregroundStyle(.one)
|
||||||
.foregroundStyle(
|
.strikethrough(event.complete)
|
||||||
.one.opacity(event.complete ? 0.5 : 1))
|
.multilineTextAlignment(.leading)
|
||||||
}
|
|
||||||
}
|
|
||||||
Spacer()
|
|
||||||
VStack {
|
|
||||||
Text("\(daysUntilEvent(event.date).long)")
|
|
||||||
.font(.subheadline)
|
|
||||||
.foregroundStyle(.one)
|
|
||||||
}
|
|
||||||
Button() {
|
|
||||||
withAnimation {
|
|
||||||
event.complete.toggle()
|
|
||||||
}
|
|
||||||
let eventToModify = viewModel.events.firstIndex() { currEvent in
|
|
||||||
currEvent.id == event.id
|
|
||||||
}
|
|
||||||
if let eventToModify = eventToModify {
|
|
||||||
viewModel.events[eventToModify] = event
|
|
||||||
viewModel.saveEvents()
|
|
||||||
}
|
|
||||||
} label: {
|
|
||||||
if event.complete {
|
|
||||||
ZStack {
|
|
||||||
Circle()
|
|
||||||
.foregroundStyle(.green)
|
|
||||||
Image(systemName: "checkmark")
|
|
||||||
.resizable()
|
|
||||||
.foregroundStyle(.white)
|
|
||||||
.scaledToFit()
|
|
||||||
.bold()
|
|
||||||
.frame(width: 15)
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
Image(systemName: "circle")
|
|
||||||
.resizable()
|
|
||||||
.scaledToFit()
|
|
||||||
.foregroundStyle(event.color.color)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.buttonStyle(.borderless)
|
|
||||||
.frame(maxWidth: 25, maxHeight: 25)
|
|
||||||
.shadow(radius: 5)
|
|
||||||
.padding(.trailing, 5)
|
|
||||||
}
|
}
|
||||||
.padding(.vertical, 5)
|
if !event.notes.isEmpty {
|
||||||
.background(.ultraThinMaterial)
|
Text(event.notes)
|
||||||
.overlay(
|
.font(.subheadline)
|
||||||
RoundedRectangle(cornerRadius: 10)
|
.foregroundStyle(.one.opacity(0.8))
|
||||||
.stroke(
|
.multilineTextAlignment(.leading)
|
||||||
.one.opacity(appearance == .dark ? 0.5 : 1),
|
}
|
||||||
lineWidth: 1
|
Text(
|
||||||
)
|
event.date.formatted(
|
||||||
|
date: .long,
|
||||||
|
time: .shortened
|
||||||
|
)
|
||||||
)
|
)
|
||||||
.clipShape(
|
.font(.subheadline)
|
||||||
RoundedRectangle(cornerRadius: 10)
|
.foregroundStyle(
|
||||||
|
.one.opacity(
|
||||||
|
event.complete ? 0.5 : 1
|
||||||
|
)
|
||||||
)
|
)
|
||||||
.fixedSize(horizontal: false, vertical: true)
|
if event.recurrence != .none {
|
||||||
|
Text("Occurs \(event.recurrence.rawValue)")
|
||||||
|
.font(.subheadline)
|
||||||
|
.foregroundStyle(
|
||||||
|
.one.opacity(event.complete ? 0.5 : 1))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.contextMenu() {
|
Spacer()
|
||||||
Button(role: .destructive) {
|
VStack {
|
||||||
let eventToModify = viewModel.events.firstIndex() { currEvent in
|
Text("\(daysUntilEvent(event.date).long)")
|
||||||
currEvent.id == event.id
|
.font(.subheadline)
|
||||||
}
|
.foregroundStyle(event.date.timeIntervalSinceNow < 0 ? .red : .one)
|
||||||
if let eventToModify = eventToModify {
|
.multilineTextAlignment(.trailing)
|
||||||
viewModel.events.remove(at: eventToModify)
|
}
|
||||||
viewModel.saveEvents()
|
CompleteEventButton(
|
||||||
}
|
viewModel: viewModel,
|
||||||
} label: {
|
event: $event
|
||||||
Label("Delete", systemImage: "trash")
|
)
|
||||||
|
}
|
||||||
|
.padding(.vertical, 5)
|
||||||
|
.overlay(
|
||||||
|
RoundedRectangle(cornerRadius: 15)
|
||||||
|
.stroke(.one.opacity(0.5), lineWidth: 1)
|
||||||
|
)
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 15))
|
||||||
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
|
.contextMenu() {
|
||||||
|
Button(role: .destructive) {
|
||||||
|
let eventToModify = viewModel.events.firstIndex() { currEvent in
|
||||||
|
currEvent.id == event.id
|
||||||
}
|
}
|
||||||
|
if let eventToModify = eventToModify {
|
||||||
|
viewModel.events.remove(at: eventToModify)
|
||||||
|
viewModel.saveEvents()
|
||||||
|
}
|
||||||
|
} label: {
|
||||||
|
Label("Delete", systemImage: "trash")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#Preview("EventListView") {
|
#Preview("EventListView") {
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ enum HelpType {
|
|||||||
case Archive
|
case Archive
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum Field {
|
||||||
|
case Search
|
||||||
|
}
|
||||||
|
|
||||||
struct HelpView: View {
|
struct HelpView: View {
|
||||||
/// initialises a Search HelpView
|
/// initialises a Search HelpView
|
||||||
///
|
///
|
||||||
@@ -74,7 +78,7 @@ struct HelpView: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
List {
|
List {
|
||||||
ZStack {
|
ZStack {
|
||||||
Color(.tintColor)
|
Color(.accent)
|
||||||
.opacity(0.4)
|
.opacity(0.4)
|
||||||
.padding(.horizontal, -15)
|
.padding(.horizontal, -15)
|
||||||
.blur(radius: 5)
|
.blur(radius: 5)
|
||||||
|
|||||||
103
NearFuture/Views/Home/HomeView.swift
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
//
|
||||||
|
// HomeView.swift
|
||||||
|
// NearFuture
|
||||||
|
//
|
||||||
|
// Created by neon443 on 12/05/2025.
|
||||||
|
//
|
||||||
|
|
||||||
|
import SwiftUI
|
||||||
|
import AppIntents
|
||||||
|
|
||||||
|
struct HomeView: View {
|
||||||
|
@ObservedObject var viewModel: EventViewModel
|
||||||
|
@ObservedObject var settingsModel: SettingsViewModel
|
||||||
|
|
||||||
|
@State private var showingAddEventView: Bool = false
|
||||||
|
@State private var searchInput: String = ""
|
||||||
|
@Environment(\.colorScheme) var appearance
|
||||||
|
var darkMode: Bool {
|
||||||
|
return appearance == .dark
|
||||||
|
}
|
||||||
|
var filteredEvents: [Event] {
|
||||||
|
if searchInput.isEmpty {
|
||||||
|
if settingsModel.settings.showCompletedInHome {
|
||||||
|
return viewModel.events
|
||||||
|
} else {
|
||||||
|
return viewModel.events.filter() {!$0.complete}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return viewModel.events.filter {
|
||||||
|
$0.name.localizedCaseInsensitiveContains(searchInput) ||
|
||||||
|
$0.notes.localizedCaseInsensitiveContains(searchInput)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@State private var focusedTab: Tab = .home
|
||||||
|
|
||||||
|
@FocusState private var focusedField: Field?
|
||||||
|
|
||||||
|
var body: some View {
|
||||||
|
NavigationStack {
|
||||||
|
ZStack {
|
||||||
|
backgroundGradient
|
||||||
|
VStack {
|
||||||
|
if filteredEvents.isEmpty && !searchInput.isEmpty {
|
||||||
|
HelpView(searchInput: $searchInput, focusedField: focusedField)
|
||||||
|
} else {
|
||||||
|
ScrollView {
|
||||||
|
// LazyVStack {
|
||||||
|
ForEach(filteredEvents) { event in
|
||||||
|
NavigationLink() {
|
||||||
|
EditEventView(
|
||||||
|
viewModel: viewModel,
|
||||||
|
event: Binding(
|
||||||
|
get: { event },
|
||||||
|
set: { newValue in
|
||||||
|
viewModel.editEvent(newValue)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
} label: {
|
||||||
|
EventListView(viewModel: viewModel, event: event)
|
||||||
|
.id(event.complete)
|
||||||
|
}
|
||||||
|
.transition(.moveAndFade)
|
||||||
|
}
|
||||||
|
.padding(.horizontal)
|
||||||
|
// }
|
||||||
|
if filteredEvents.isEmpty {
|
||||||
|
HelpView(
|
||||||
|
searchInput: $searchInput,
|
||||||
|
focusedField: focusedField
|
||||||
|
)
|
||||||
|
}
|
||||||
|
Spacer()
|
||||||
|
}
|
||||||
|
.animation(.default, value: filteredEvents)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.searchable(text: $searchInput)
|
||||||
|
.navigationTitle("Near Future")
|
||||||
|
.modifier(navigationInlineLarge())
|
||||||
|
.sheet(isPresented: $showingAddEventView) {
|
||||||
|
AddEventView(
|
||||||
|
viewModel: viewModel
|
||||||
|
)
|
||||||
|
}
|
||||||
|
.toolbar {
|
||||||
|
ToolbarItem(placement: .primaryAction) {
|
||||||
|
AddEventButton(showingAddEventView: $showingAddEventView)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#Preview {
|
||||||
|
HomeView(
|
||||||
|
viewModel: dummyEventViewModel(),
|
||||||
|
settingsModel: dummySettingsViewModel()
|
||||||
|
)
|
||||||
|
}
|
||||||
31
NearFuture/Views/Misc/AboutView.swift
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
//
|
||||||
|
// AboutView.swift
|
||||||
|
// NearFuture
|
||||||
|
//
|
||||||
|
// Created by neon443 on 12/05/2025.
|
||||||
|
//
|
||||||
|
|
||||||
|
import SwiftUI
|
||||||
|
|
||||||
|
struct AboutView: View {
|
||||||
|
var body: some View {
|
||||||
|
VStack {
|
||||||
|
Image(uiImage: #imageLiteral(resourceName: "NearFutureIcon.png"))
|
||||||
|
.resizable()
|
||||||
|
.scaledToFit()
|
||||||
|
.frame(width: 100)
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 25))
|
||||||
|
Text("Near Future")
|
||||||
|
.bold()
|
||||||
|
.monospaced()
|
||||||
|
.font(.title)
|
||||||
|
.frame(maxWidth: .infinity)
|
||||||
|
Text("Version " + getVersion() + " (\(getBuildID()))")
|
||||||
|
.frame(maxWidth: .infinity)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#Preview {
|
||||||
|
AboutView()
|
||||||
|
}
|
||||||
@@ -34,17 +34,12 @@ struct AddEventButton: View {
|
|||||||
Button() {
|
Button() {
|
||||||
showingAddEventView.toggle()
|
showingAddEventView.toggle()
|
||||||
} label: {
|
} label: {
|
||||||
ZStack {
|
Image(systemName: "plus")
|
||||||
Circle()
|
.resizable()
|
||||||
.frame(width: 33)
|
.scaledToFit()
|
||||||
.foregroundStyle(.one)
|
.frame(width: 15)
|
||||||
Image(systemName: "plus")
|
.bold()
|
||||||
.resizable()
|
.foregroundStyle(.one)
|
||||||
.scaledToFit()
|
|
||||||
.frame(width: 15)
|
|
||||||
.bold()
|
|
||||||
.foregroundStyle(.two)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,11 @@ struct ExportView: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
List {
|
List {
|
||||||
Button() {
|
Button() {
|
||||||
|
#if canImport(UIKit)
|
||||||
UIPasteboard.general.string = viewModel.exportEvents()
|
UIPasteboard.general.string = viewModel.exportEvents()
|
||||||
|
#else
|
||||||
|
NSPasteboard.general.setString(viewModel.exportEvents(), forType: .string)
|
||||||
|
#endif
|
||||||
} label: {
|
} label: {
|
||||||
Label("Copy Events", systemImage: "document.on.clipboard")
|
Label("Copy Events", systemImage: "document.on.clipboard")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,47 +15,117 @@ struct ImportView: View {
|
|||||||
@State private var text: String = "Ready..."
|
@State private var text: String = "Ready..."
|
||||||
@State private var fgColor: Color = .yellow
|
@State private var fgColor: Color = .yellow
|
||||||
|
|
||||||
var body: some View {
|
@State private var showAlert: Bool = false
|
||||||
List {
|
|
||||||
Section("Status") {
|
@State private var replaceCurrentEvents: Bool = false
|
||||||
Label(text, systemImage: image)
|
|
||||||
.contentTransition(.numericText())
|
fileprivate func importEvents() {
|
||||||
.foregroundStyle(fgColor)
|
do throws {
|
||||||
|
try viewModel.importEvents(importStr, replace: replaceCurrentEvents)
|
||||||
|
withAnimation {
|
||||||
|
image = "checkmark.circle.fill"
|
||||||
|
text = "Complete"
|
||||||
|
fgColor = .green
|
||||||
}
|
}
|
||||||
TextField("", text: $importStr)
|
} catch importError.invalidB64 {
|
||||||
Button() {
|
withAnimation {
|
||||||
do throws {
|
image = "xmark.app.fill"
|
||||||
try viewModel.importEvents(importStr)
|
text = "Invalid base64 input."
|
||||||
withAnimation {
|
fgColor = .red
|
||||||
image = "checkmark.circle.fill"
|
|
||||||
text = "Complete"
|
|
||||||
fgColor = .green
|
|
||||||
}
|
|
||||||
} catch importError.invalidB64 {
|
|
||||||
withAnimation {
|
|
||||||
image = "xmark.app.fill"
|
|
||||||
text = "Invalid base64 input."
|
|
||||||
fgColor = .red
|
|
||||||
}
|
|
||||||
} catch {
|
|
||||||
withAnimation {
|
|
||||||
image = "xmark.app.fill"
|
|
||||||
text = error.localizedDescription
|
|
||||||
fgColor = .red
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} label: {
|
|
||||||
Label("Import", systemImage: "tray.and.arrow.down.fill")
|
|
||||||
}
|
}
|
||||||
.disabled(importStr.isEmpty)
|
} catch {
|
||||||
.onAppear() {
|
withAnimation {
|
||||||
importStr = ""
|
image = "xmark.app.fill"
|
||||||
image = "clock.fill"
|
text = error.localizedDescription
|
||||||
text = "Ready..."
|
fgColor = .red
|
||||||
fgColor = .yellow
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var body: some View {
|
||||||
|
ZStack(alignment: .center) {
|
||||||
|
List {
|
||||||
|
Section("Status") {
|
||||||
|
Label(text, systemImage: image)
|
||||||
|
.contentTransition(.numericText())
|
||||||
|
.foregroundStyle(fgColor)
|
||||||
|
}
|
||||||
|
TextField("", text: $importStr)
|
||||||
|
Button() {
|
||||||
|
withAnimation {
|
||||||
|
showAlert.toggle()
|
||||||
|
}
|
||||||
|
} label: {
|
||||||
|
Label("Import", systemImage: "tray.and.arrow.down.fill")
|
||||||
|
}
|
||||||
|
.disabled(importStr.isEmpty)
|
||||||
|
.onAppear() {
|
||||||
|
importStr = ""
|
||||||
|
image = "clock.fill"
|
||||||
|
text = "Ready..."
|
||||||
|
fgColor = .yellow
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.blur(radius: showAlert ? 2 : 0)
|
||||||
|
Group {
|
||||||
|
Rectangle()
|
||||||
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||||
|
.foregroundStyle(replaceCurrentEvents ? .red.opacity(0.25) : .black.opacity(0.2))
|
||||||
|
.animation(.default, value: replaceCurrentEvents)
|
||||||
|
.ignoresSafeArea()
|
||||||
|
ZStack {
|
||||||
|
Rectangle()
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 25))
|
||||||
|
VStack(alignment: .center) {
|
||||||
|
Text("Are you sure?")
|
||||||
|
.font(.largeTitle)
|
||||||
|
.bold()
|
||||||
|
.foregroundStyle(replaceCurrentEvents ? .red : .two)
|
||||||
|
.animation(.default, value: replaceCurrentEvents)
|
||||||
|
Text("This will replace your current events!")
|
||||||
|
.lineLimit(nil)
|
||||||
|
.multilineTextAlignment(.center)
|
||||||
|
.opacity(replaceCurrentEvents ? 1 : 0)
|
||||||
|
.animation(.default, value: replaceCurrentEvents)
|
||||||
|
.foregroundStyle(.two)
|
||||||
|
Toggle("Replace Events", isOn: $replaceCurrentEvents)
|
||||||
|
.foregroundStyle(.two)
|
||||||
|
Spacer()
|
||||||
|
HStack {
|
||||||
|
Button() {
|
||||||
|
withAnimation {
|
||||||
|
showAlert.toggle()
|
||||||
|
}
|
||||||
|
importEvents()
|
||||||
|
} label: {
|
||||||
|
Text("cancel")
|
||||||
|
.font(.title2)
|
||||||
|
.bold()
|
||||||
|
}
|
||||||
|
.buttonStyle(BorderedProminentButtonStyle())
|
||||||
|
|
||||||
|
Spacer()
|
||||||
|
|
||||||
|
Button() {
|
||||||
|
withAnimation {
|
||||||
|
showAlert.toggle()
|
||||||
|
}
|
||||||
|
importEvents()
|
||||||
|
} label: {
|
||||||
|
Text("yes")
|
||||||
|
.font(.title2)
|
||||||
|
.bold()
|
||||||
|
}
|
||||||
|
.buttonStyle(BorderedProminentButtonStyle())
|
||||||
|
}
|
||||||
|
.padding()
|
||||||
|
}
|
||||||
|
.padding()
|
||||||
|
}
|
||||||
|
.frame(maxWidth: 250, maxHeight: 250)
|
||||||
|
}
|
||||||
|
.opacity(showAlert ? 1 : 0)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SettingsView.swift
|
// SettingsView.swift
|
||||||
// NearFuture
|
// NearFuture
|
||||||
//
|
//
|
||||||
// Created by Nihaal Sharma on 29/12/2024.
|
// Created by neon443 on 29/12/2024.
|
||||||
//
|
//
|
||||||
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
@@ -10,33 +10,22 @@ import SwiftUI
|
|||||||
struct SettingsView: View {
|
struct SettingsView: View {
|
||||||
@ObservedObject var viewModel: EventViewModel
|
@ObservedObject var viewModel: EventViewModel
|
||||||
@ObservedObject var settingsModel: SettingsViewModel
|
@ObservedObject var settingsModel: SettingsViewModel
|
||||||
|
|
||||||
@State private var hasUbiquitous: Bool = false
|
|
||||||
@State private var lastSyncWasSuccessful: Bool = false
|
|
||||||
@State private var lastSyncWasNormalAgo: Bool = false
|
|
||||||
@State private var localCountEqualToiCloud: Bool = false
|
|
||||||
@State private var icloudCountEqualToLocal: Bool = false
|
|
||||||
@State private var importStr: String = ""
|
@State private var importStr: String = ""
|
||||||
|
|
||||||
func updateStatus() {
|
func changeIcon(to toIcon: String) {
|
||||||
let vm = viewModel
|
guard UIApplication.shared.supportsAlternateIcons else {
|
||||||
hasUbiquitous = vm.hasUbiquitousKeyValueStore()
|
print("doesnt tsupport alternate icons")
|
||||||
lastSyncWasSuccessful = vm.syncStatus.contains("Success")
|
return
|
||||||
lastSyncWasNormalAgo = vm.lastSync?.timeIntervalSinceNow.isNormal ?? false
|
}
|
||||||
localCountEqualToiCloud = vm.localEventCount == vm.icloudEventCount
|
guard toIcon != "orange" else {
|
||||||
icloudCountEqualToLocal = vm.icloudEventCount == vm.localEventCount
|
UIApplication.shared.setAlternateIconName(nil) { error in
|
||||||
}
|
print(error as Any)
|
||||||
|
}
|
||||||
var iCloudStatusColor: Color {
|
return
|
||||||
let allTrue = hasUbiquitous && lastSyncWasSuccessful && lastSyncWasNormalAgo && localCountEqualToiCloud && icloudCountEqualToLocal
|
}
|
||||||
let someTrue = hasUbiquitous || lastSyncWasSuccessful || lastSyncWasNormalAgo || localCountEqualToiCloud || icloudCountEqualToLocal
|
UIApplication.shared.setAlternateIconName(toIcon) { error in
|
||||||
|
print(error as Any)
|
||||||
if allTrue {
|
|
||||||
return .green
|
|
||||||
} else if someTrue {
|
|
||||||
return .orange
|
|
||||||
} else {
|
|
||||||
return .red
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,16 +36,18 @@ struct SettingsView: View {
|
|||||||
List {
|
List {
|
||||||
ScrollView(.horizontal) {
|
ScrollView(.horizontal) {
|
||||||
HStack {
|
HStack {
|
||||||
ForEach(settingsModel.accentChoices, id: \.self) { color in
|
ForEach(settingsModel.accentChoices, id: \.self) { choice in
|
||||||
|
let color = Color(uiColor: UIColor(named: "uiColors/\(choice)")!)
|
||||||
ZStack {
|
ZStack {
|
||||||
Button() {
|
Button() {
|
||||||
settingsModel.settings.tint.colorBind = color
|
settingsModel.changeTint(to: choice)
|
||||||
settingsModel.saveSettings()
|
changeIcon(to: choice)
|
||||||
} label: {
|
} label: {
|
||||||
Circle()
|
Circle()
|
||||||
.foregroundStyle(color)
|
.foregroundStyle(color)
|
||||||
.frame(width: 30)
|
.frame(width: 30)
|
||||||
}
|
}
|
||||||
|
.buttonStyle(.plain)
|
||||||
if ColorCodable(color) == settingsModel.settings.tint {
|
if ColorCodable(color) == settingsModel.settings.tint {
|
||||||
let needContrast: Bool = ColorCodable(color) == settingsModel.settings.tint
|
let needContrast: Bool = ColorCodable(color) == settingsModel.settings.tint
|
||||||
Circle()
|
Circle()
|
||||||
@@ -67,16 +58,26 @@ struct SettingsView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Button("Show What's New") {
|
||||||
|
settingsModel.settings.showWhatsNew = true
|
||||||
|
}
|
||||||
|
Toggle("Show completed Events in Home", isOn: $settingsModel.settings.showCompletedInHome)
|
||||||
|
.onChange(of: settingsModel.settings.showCompletedInHome) { _ in
|
||||||
|
settingsModel.saveSettings()
|
||||||
|
}
|
||||||
NavigationLink() {
|
NavigationLink() {
|
||||||
List {
|
List {
|
||||||
if !settingsModel.notifsGranted {
|
if !settingsModel.notifsGranted {
|
||||||
Button("Request Notifications") {
|
|
||||||
Task {
|
|
||||||
settingsModel.notifsGranted = await requestNotifs()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Text("\(Image(systemName: "xmark")) Notifications disabled for Near Future")
|
Text("\(Image(systemName: "xmark")) Notifications disabled for Near Future")
|
||||||
.foregroundStyle(.red)
|
.foregroundStyle(.red)
|
||||||
|
Button("Request Notifications") {
|
||||||
|
Task.detached {
|
||||||
|
let requestNotifsResult = await requestNotifs()
|
||||||
|
await MainActor.run {
|
||||||
|
settingsModel.notifsGranted = requestNotifsResult
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Text("\(Image(systemName: "checkmark")) Notifications enabled for Near Future")
|
Text("\(Image(systemName: "checkmark")) Notifications enabled for Near Future")
|
||||||
.foregroundStyle(.green)
|
.foregroundStyle(.green)
|
||||||
@@ -89,12 +90,7 @@ struct SettingsView: View {
|
|||||||
NavigationLink() {
|
NavigationLink() {
|
||||||
iCloudSettingsView(
|
iCloudSettingsView(
|
||||||
viewModel: viewModel,
|
viewModel: viewModel,
|
||||||
hasUbiquitous: $hasUbiquitous,
|
settingsModel: settingsModel
|
||||||
lastSyncWasSuccessful: $lastSyncWasSuccessful,
|
|
||||||
lastSyncWasNormalAgo: $lastSyncWasNormalAgo,
|
|
||||||
localCountEqualToiCloud: $localCountEqualToiCloud,
|
|
||||||
icloudCountEqualToLocal: $icloudCountEqualToLocal,
|
|
||||||
updateStatus: updateStatus
|
|
||||||
)
|
)
|
||||||
} label: {
|
} label: {
|
||||||
HStack {
|
HStack {
|
||||||
@@ -103,12 +99,12 @@ struct SettingsView: View {
|
|||||||
Spacer()
|
Spacer()
|
||||||
Circle()
|
Circle()
|
||||||
.frame(width: 20, height: 20)
|
.frame(width: 20, height: 20)
|
||||||
.foregroundStyle(iCloudStatusColor)
|
.foregroundStyle(viewModel.iCloudStatusColor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
viewModel.sync()
|
viewModel.sync()
|
||||||
updateStatus()
|
viewModel.updateiCStatus()
|
||||||
}
|
}
|
||||||
NavigationLink() {
|
NavigationLink() {
|
||||||
ImportView(viewModel: viewModel, importStr: $importStr)
|
ImportView(viewModel: viewModel, importStr: $importStr)
|
||||||
@@ -148,32 +144,13 @@ struct SettingsView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Section("About") {
|
Section("About") {
|
||||||
VStack {
|
AboutView()
|
||||||
Image(uiImage: #imageLiteral(resourceName: "NearFutureIcon.png"))
|
|
||||||
.resizable()
|
|
||||||
.scaledToFit()
|
|
||||||
.frame(width: 100)
|
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 25))
|
|
||||||
Text("Near Future")
|
|
||||||
.bold()
|
|
||||||
.monospaced()
|
|
||||||
.font(.title)
|
|
||||||
.frame(maxWidth: .infinity)
|
|
||||||
Text("Version " + getVersion() + " (\(getBuildID()))")
|
|
||||||
.frame(maxWidth: .infinity)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.scrollContentBackground(.hidden)
|
|
||||||
.navigationTitle("Settings")
|
.navigationTitle("Settings")
|
||||||
.apply {
|
.modifier(navigationInlineLarge())
|
||||||
if #available(iOS 17, *) {
|
.scrollContentBackground(.hidden)
|
||||||
$0.toolbarTitleDisplayMode(.inlineLarge)
|
|
||||||
} else {
|
|
||||||
$0.navigationBarTitleDisplayMode(.inline)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -184,17 +161,3 @@ struct SettingsView: View {
|
|||||||
settingsModel: dummySettingsViewModel()
|
settingsModel: dummySettingsViewModel()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
func getVersion() -> String {
|
|
||||||
guard let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] else {
|
|
||||||
fatalError("no bundle id wtf lol")
|
|
||||||
}
|
|
||||||
return "\(version)"
|
|
||||||
}
|
|
||||||
|
|
||||||
func getBuildID() -> String {
|
|
||||||
guard let build = Bundle.main.infoDictionary?["CFBundleVersion"] else {
|
|
||||||
fatalError("wtf did u do w the build number")
|
|
||||||
}
|
|
||||||
return "\(build)"
|
|
||||||
}
|
|
||||||
|
|||||||
132
NearFuture/Views/Settings/WhatsNewView.swift
Normal file
@@ -0,0 +1,132 @@
|
|||||||
|
//
|
||||||
|
// WhatsNewView.swift
|
||||||
|
// NearFuture
|
||||||
|
//
|
||||||
|
// Created by neon443 on 12/05/2025.
|
||||||
|
//
|
||||||
|
|
||||||
|
import SwiftUI
|
||||||
|
|
||||||
|
struct WhatsNewView: View {
|
||||||
|
@ObservedObject var settingsModel: SettingsViewModel
|
||||||
|
@Environment(\.dismiss) var dismiss
|
||||||
|
struct WhatsNewChunk: Identifiable {
|
||||||
|
var id: UUID = UUID()
|
||||||
|
var symbol: String
|
||||||
|
var title: String
|
||||||
|
var subtitle: String
|
||||||
|
}
|
||||||
|
@State var bye: Bool = false
|
||||||
|
var whatsNewChunks: [WhatsNewChunk] {
|
||||||
|
return [
|
||||||
|
WhatsNewChunk(
|
||||||
|
symbol: "desktopcomputer",
|
||||||
|
title: "Mac Native App",
|
||||||
|
subtitle: "New Mac native app (Intel too!)"
|
||||||
|
),
|
||||||
|
WhatsNewChunk(
|
||||||
|
symbol: "iphone.radiowaves.left.and.right",
|
||||||
|
title: "Haptic Feedback",
|
||||||
|
subtitle: "Lovely haptic feedback when completing and adding events, and selecting tabs"
|
||||||
|
),
|
||||||
|
WhatsNewChunk(
|
||||||
|
symbol: "app",
|
||||||
|
title: "App Icons",
|
||||||
|
subtitle: "You now get a special app icon that matches the color you choose in settings!"
|
||||||
|
),
|
||||||
|
WhatsNewChunk(
|
||||||
|
symbol: "apps.iphone",
|
||||||
|
title: "Widgets Day Count Fix",
|
||||||
|
subtitle: "The day count for widgets are now red for overdue events, just like the app, and are now more readable"
|
||||||
|
),
|
||||||
|
WhatsNewChunk(
|
||||||
|
symbol: settingsModel.device.sf,
|
||||||
|
title: "This Screen",
|
||||||
|
subtitle: "This update add a Whats New page that will tell you (suprise!) What's New"
|
||||||
|
),
|
||||||
|
WhatsNewChunk(
|
||||||
|
symbol: "bell.badge.fill",
|
||||||
|
title: "Notifications",
|
||||||
|
subtitle: "Events now have notifications, reminding you to complete them!"
|
||||||
|
),
|
||||||
|
WhatsNewChunk(
|
||||||
|
symbol: "list.bullet.indent",
|
||||||
|
title: "Animations!",
|
||||||
|
subtitle: "I added animations for adding, removing and ticking events - animations are definitely the most important change"
|
||||||
|
)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
var body: some View {
|
||||||
|
NavigationStack {
|
||||||
|
ScrollView {
|
||||||
|
Text("What's New")
|
||||||
|
.font(.largeTitle)
|
||||||
|
.bold()
|
||||||
|
.padding(.vertical)
|
||||||
|
VStack(alignment: .leading) {
|
||||||
|
ForEach(whatsNewChunks) { new in
|
||||||
|
WhatsNewChunkView(
|
||||||
|
symbol: new.symbol,
|
||||||
|
title: new.title,
|
||||||
|
subtitle: new.subtitle
|
||||||
|
)
|
||||||
|
}
|
||||||
|
Spacer()
|
||||||
|
}
|
||||||
|
.padding(.horizontal, 10)
|
||||||
|
}
|
||||||
|
Button() {
|
||||||
|
bye.toggle()
|
||||||
|
dismiss()
|
||||||
|
} label: {
|
||||||
|
Text("Continue")
|
||||||
|
.font(.headline)
|
||||||
|
.frame(height: 40)
|
||||||
|
.bold()
|
||||||
|
// .frame(maxWidth: .infinity)
|
||||||
|
}
|
||||||
|
.foregroundStyle(.orange)
|
||||||
|
.modifier(glassButton())
|
||||||
|
.modifier(hapticHeavy(trigger: bye))
|
||||||
|
}
|
||||||
|
.scrollContentBackground(.hidden)
|
||||||
|
.presentationDragIndicator(.visible)
|
||||||
|
.onDisappear {
|
||||||
|
settingsModel.settings.prevAppVersion = getVersion()+getBuildID()
|
||||||
|
settingsModel.saveSettings()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#Preview {
|
||||||
|
Color.accent
|
||||||
|
.ignoresSafeArea(.all)
|
||||||
|
.sheet(isPresented: .constant(true)) {
|
||||||
|
WhatsNewView(settingsModel: dummySettingsViewModel())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
struct WhatsNewChunkView: View {
|
||||||
|
@State var symbol: String
|
||||||
|
@State var title: String
|
||||||
|
@State var subtitle: String
|
||||||
|
var body: some View {
|
||||||
|
HStack {
|
||||||
|
Image(systemName: symbol)
|
||||||
|
.resizable()
|
||||||
|
.scaledToFit()
|
||||||
|
.frame(width: 30, height: 30)
|
||||||
|
.foregroundStyle(Color.orange)
|
||||||
|
.padding(.trailing, 15)
|
||||||
|
VStack(alignment: .leading) {
|
||||||
|
Text(title)
|
||||||
|
.font(.headline)
|
||||||
|
.bold()
|
||||||
|
Text(subtitle)
|
||||||
|
.foregroundStyle(.gray)
|
||||||
|
.font(.subheadline)
|
||||||
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,30 +8,18 @@
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct iCloudSettingsView: View {
|
struct iCloudSettingsView: View {
|
||||||
@State var viewModel: EventViewModel
|
@ObservedObject var viewModel: EventViewModel
|
||||||
|
@ObservedObject var settingsModel: SettingsViewModel
|
||||||
@State var showPushAlert: Bool = false
|
@State var showPushAlert: Bool = false
|
||||||
@State var showPullAlert: Bool = false
|
@State var showPullAlert: Bool = false
|
||||||
|
|
||||||
@Binding var hasUbiquitous: Bool
|
// @Binding var hasUbiquitous: Bool
|
||||||
@Binding var lastSyncWasSuccessful: Bool
|
// @Binding var lastSyncWasSuccessful: Bool
|
||||||
@Binding var lastSyncWasNormalAgo: Bool
|
// @Binding var lastSyncWasNormalAgo: Bool
|
||||||
@Binding var localCountEqualToiCloud: Bool
|
// @Binding var localCountEqualToiCloud: Bool
|
||||||
@Binding var icloudCountEqualToLocal: Bool
|
// @Binding var icloudCountEqualToLocal: Bool
|
||||||
|
//
|
||||||
let asi = ProcessInfo().isiOSAppOnMac
|
// var updateStatus: () -> Void
|
||||||
let model = UIDevice().model
|
|
||||||
var device: (sf: String, label: String) {
|
|
||||||
if asi {
|
|
||||||
return (sf: "laptopcomputer", label: "Computer")
|
|
||||||
} else if model == "iPhone" {
|
|
||||||
return (sf: model.lowercased(), label: model)
|
|
||||||
} else if model == "iPad" {
|
|
||||||
return (sf: model.lowercased(), label: model)
|
|
||||||
}
|
|
||||||
return (sf: "iphone", label: "iPhone")
|
|
||||||
}
|
|
||||||
|
|
||||||
var updateStatus: () -> Void
|
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ZStack {
|
ZStack {
|
||||||
@@ -67,7 +55,7 @@ struct iCloudSettingsView: View {
|
|||||||
Button("OK", role: .destructive) {
|
Button("OK", role: .destructive) {
|
||||||
viewModel.replaceiCloudWithLocalData()
|
viewModel.replaceiCloudWithLocalData()
|
||||||
viewModel.sync()
|
viewModel.sync()
|
||||||
updateStatus()
|
viewModel.updateiCStatus()
|
||||||
}
|
}
|
||||||
Button("Cancel", role: .cancel) {}
|
Button("Cancel", role: .cancel) {}
|
||||||
} message: {
|
} message: {
|
||||||
@@ -76,7 +64,7 @@ struct iCloudSettingsView: View {
|
|||||||
|
|
||||||
Button() {
|
Button() {
|
||||||
viewModel.sync()
|
viewModel.sync()
|
||||||
updateStatus()
|
viewModel.updateiCStatus()
|
||||||
} label: {
|
} label: {
|
||||||
Image(systemName: "arrow.triangle.2.circlepath")
|
Image(systemName: "arrow.triangle.2.circlepath")
|
||||||
.resizable()
|
.resizable()
|
||||||
@@ -99,7 +87,7 @@ struct iCloudSettingsView: View {
|
|||||||
Button("OK", role: .destructive) {
|
Button("OK", role: .destructive) {
|
||||||
viewModel.replaceLocalWithiCloudData()
|
viewModel.replaceLocalWithiCloudData()
|
||||||
viewModel.sync()
|
viewModel.sync()
|
||||||
updateStatus()
|
viewModel.updateiCStatus()
|
||||||
}
|
}
|
||||||
Button("Cancel", role: .cancel) {}
|
Button("Cancel", role: .cancel) {}
|
||||||
} message: {
|
} message: {
|
||||||
@@ -107,7 +95,7 @@ struct iCloudSettingsView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ZStack {
|
ZStack {
|
||||||
Image(systemName: device.sf)
|
Image(systemName: settingsModel.device.sf)
|
||||||
.resizable()
|
.resizable()
|
||||||
.scaledToFit()
|
.scaledToFit()
|
||||||
.frame(width: 75, height: 75)
|
.frame(width: 75, height: 75)
|
||||||
@@ -117,30 +105,30 @@ struct iCloudSettingsView: View {
|
|||||||
.monospaced()
|
.monospaced()
|
||||||
.bold()
|
.bold()
|
||||||
}
|
}
|
||||||
Text(device.label)
|
Text(settingsModel.device.label)
|
||||||
}
|
}
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
.listRowSeparator(.hidden)
|
.listRowSeparator(.hidden)
|
||||||
.onAppear {
|
.onAppear {
|
||||||
viewModel.sync()
|
viewModel.sync()
|
||||||
updateStatus()
|
viewModel.updateiCStatus()
|
||||||
}
|
}
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
Circle()
|
Circle()
|
||||||
.frame(width: 20, height: 20)
|
.frame(width: 20, height: 20)
|
||||||
.foregroundStyle(hasUbiquitous ? .green : .red)
|
.foregroundStyle(viewModel.hasUbiquitous ? .green : .red)
|
||||||
Text("iCloud")
|
Text("iCloud")
|
||||||
Spacer()
|
Spacer()
|
||||||
Text("\(hasUbiquitous ? "" : "Not ")Working")
|
Text("\(viewModel.hasUbiquitous ? "" : "Not ")Working")
|
||||||
.bold()
|
.bold()
|
||||||
}
|
}
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
Circle()
|
Circle()
|
||||||
.frame(width: 20, height: 20)
|
.frame(width: 20, height: 20)
|
||||||
.foregroundStyle(lastSyncWasSuccessful ? .green : .red)
|
.foregroundStyle(viewModel.lastSyncWasSuccessful ? .green : .red)
|
||||||
Text("Sync Status")
|
Text("Sync Status")
|
||||||
Spacer()
|
Spacer()
|
||||||
Text("\(viewModel.syncStatus)")
|
Text("\(viewModel.syncStatus)")
|
||||||
@@ -150,7 +138,7 @@ struct iCloudSettingsView: View {
|
|||||||
HStack {
|
HStack {
|
||||||
Circle()
|
Circle()
|
||||||
.frame(width: 20, height: 20)
|
.frame(width: 20, height: 20)
|
||||||
.foregroundStyle(lastSyncWasNormalAgo ? .green : .red)
|
.foregroundStyle(viewModel.lastSyncWasNormalAgo ? .green : .red)
|
||||||
Text("Last Sync")
|
Text("Last Sync")
|
||||||
Spacer()
|
Spacer()
|
||||||
Text("\(viewModel.lastSync?.formatted(date: .long, time: .standard) ?? "Never")")
|
Text("\(viewModel.lastSync?.formatted(date: .long, time: .standard) ?? "Never")")
|
||||||
@@ -160,7 +148,7 @@ struct iCloudSettingsView: View {
|
|||||||
HStack {
|
HStack {
|
||||||
Circle()
|
Circle()
|
||||||
.frame(width: 20, height: 20)
|
.frame(width: 20, height: 20)
|
||||||
.foregroundStyle(localCountEqualToiCloud ? .green : .red)
|
.foregroundStyle(viewModel.localCountEqualToiCloud ? .green : .red)
|
||||||
Text("Local Events")
|
Text("Local Events")
|
||||||
Spacer()
|
Spacer()
|
||||||
Text("\(viewModel.localEventCount)")
|
Text("\(viewModel.localEventCount)")
|
||||||
@@ -170,7 +158,7 @@ struct iCloudSettingsView: View {
|
|||||||
HStack {
|
HStack {
|
||||||
Circle()
|
Circle()
|
||||||
.frame(width: 20, height: 20)
|
.frame(width: 20, height: 20)
|
||||||
.foregroundStyle(icloudCountEqualToLocal ? .green : .red)
|
.foregroundStyle(viewModel.icloudCountEqualToLocal ? .green : .red)
|
||||||
Text("Events in iCloud")
|
Text("Events in iCloud")
|
||||||
Spacer()
|
Spacer()
|
||||||
Text("\(viewModel.icloudEventCount)")
|
Text("\(viewModel.icloudEventCount)")
|
||||||
@@ -184,11 +172,10 @@ struct iCloudSettingsView: View {
|
|||||||
}
|
}
|
||||||
.refreshable {
|
.refreshable {
|
||||||
viewModel.sync()
|
viewModel.sync()
|
||||||
updateStatus()
|
viewModel.updateiCStatus()
|
||||||
}
|
}
|
||||||
.scrollContentBackground(.hidden)
|
.scrollContentBackground(.hidden)
|
||||||
.navigationTitle("iCloud")
|
.navigationTitle("iCloud")
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -196,11 +183,6 @@ struct iCloudSettingsView: View {
|
|||||||
#Preview("iCloudSettingsView") {
|
#Preview("iCloudSettingsView") {
|
||||||
iCloudSettingsView(
|
iCloudSettingsView(
|
||||||
viewModel: dummyEventViewModel(),
|
viewModel: dummyEventViewModel(),
|
||||||
hasUbiquitous: .constant(true),
|
settingsModel: dummySettingsViewModel()
|
||||||
lastSyncWasSuccessful: .constant(true),
|
|
||||||
lastSyncWasNormalAgo: .constant(true),
|
|
||||||
localCountEqualToiCloud: .constant(true),
|
|
||||||
icloudCountEqualToLocal: .constant(true),
|
|
||||||
updateStatus: {}
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// StatsView.swift
|
// StatsView.swift
|
||||||
// NearFuture
|
// NearFuture
|
||||||
//
|
//
|
||||||
// Created by Nihaal Sharma on 05/01/2025.
|
// Created by neon443 on 05/01/2025.
|
||||||
//
|
//
|
||||||
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
@@ -58,13 +58,7 @@ struct StatsView: View {
|
|||||||
}
|
}
|
||||||
.scrollContentBackground(.hidden)
|
.scrollContentBackground(.hidden)
|
||||||
.navigationTitle("Statistics")
|
.navigationTitle("Statistics")
|
||||||
.apply {
|
.modifier(navigationInlineLarge())
|
||||||
if #available(iOS 17, *) {
|
|
||||||
$0.toolbarTitleDisplayMode(.inlineLarge)
|
|
||||||
} else {
|
|
||||||
$0.navigationBarTitleDisplayMode(.inline)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
//
|
|
||||||
// NearFutureTests.swift
|
|
||||||
// NearFutureTests
|
|
||||||
//
|
|
||||||
// Created by neon443 on 26/03/2025.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Testing
|
|
||||||
|
|
||||||
struct NearFutureTests {
|
|
||||||
|
|
||||||
@Test func example() async throws {
|
|
||||||
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -2,11 +2,12 @@
|
|||||||
// NearFutureWidgets.swift
|
// NearFutureWidgets.swift
|
||||||
// NearFutureWidgets
|
// NearFutureWidgets
|
||||||
//
|
//
|
||||||
// Created by Nihaal Sharma on 02/01/2025.
|
// Created by neon443 on 02/01/2025.
|
||||||
//
|
//
|
||||||
|
|
||||||
import WidgetKit
|
import WidgetKit
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
import AppIntents
|
||||||
|
|
||||||
// Timeline Entry for Widget
|
// Timeline Entry for Widget
|
||||||
struct EventWidgetEntry: TimelineEntry {
|
struct EventWidgetEntry: TimelineEntry {
|
||||||
@@ -46,6 +47,24 @@ struct EventWidgetProvider: TimelineProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Event Widget View
|
// Event Widget View
|
||||||
struct EventWidgetView: View {
|
struct EventWidgetView: View {
|
||||||
var entry: EventWidgetEntry
|
var entry: EventWidgetEntry
|
||||||
@@ -128,17 +147,36 @@ struct EventWidgetView: View {
|
|||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
//short days till if not large widget
|
//short days till if not large widget
|
||||||
if isLarge {
|
if !isLarge {
|
||||||
Text(daysUntilEvent(event.date).long)
|
|
||||||
.font(.caption)
|
|
||||||
.multilineTextAlignment(.trailing)
|
|
||||||
.foregroundColor(event.color.color)
|
|
||||||
.padding(.trailing, -12)
|
|
||||||
} else {
|
|
||||||
Text(daysUntilEvent(event.date).short)
|
Text(daysUntilEvent(event.date).short)
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
.multilineTextAlignment(.trailing)
|
.multilineTextAlignment(.trailing)
|
||||||
.foregroundColor(event.color.color)
|
.foregroundColor(event.date < Date() ? .red : .primary)
|
||||||
|
.padding(.trailing, -12)
|
||||||
|
} else {
|
||||||
|
Button(
|
||||||
|
intent: CompleteEvent(
|
||||||
|
eventID: IntentParameter(
|
||||||
|
title: LocalizedStringResource(
|
||||||
|
stringLiteral: event.id.uuidString
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
if event.complete {
|
||||||
|
Circle()
|
||||||
|
.frame(width: 10)
|
||||||
|
.foregroundStyle(.green)
|
||||||
|
} else {
|
||||||
|
Circle()
|
||||||
|
.frame(width: 10)
|
||||||
|
.foregroundStyle(.gray)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Text(daysUntilEvent(event.date).long)
|
||||||
|
.font(.caption)
|
||||||
|
.multilineTextAlignment(.trailing)
|
||||||
|
.foregroundColor(event.date < Date() ? .red : .primary)
|
||||||
.padding(.trailing, -12)
|
.padding(.trailing, -12)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// NearFutureWidgetsBundle.swift
|
// NearFutureWidgetsBundle.swift
|
||||||
// NearFutureWidgets
|
// NearFutureWidgets
|
||||||
//
|
//
|
||||||
// Created by Nihaal Sharma on 02/01/2025.
|
// Created by neon443 on 02/01/2025.
|
||||||
//
|
//
|
||||||
|
|
||||||
import WidgetKit
|
import WidgetKit
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// NearFutureWidgetsLiveActivity.swift
|
// NearFutureWidgetsLiveActivity.swift
|
||||||
// NearFutureWidgets
|
// NearFutureWidgets
|
||||||
//
|
//
|
||||||
// Created by Nihaal Sharma on 02/01/2025.
|
// Created by neon443 on 02/01/2025.
|
||||||
//
|
//
|
||||||
|
|
||||||
//import ActivityKit
|
//import ActivityKit
|
||||||
|
|||||||
33
README.md
@@ -1,6 +1,24 @@
|
|||||||
# NearFuture
|
<div align="center">
|
||||||
|
<br/>
|
||||||
[App Store](https://apps.apple.com/us/app/near-future-event-tracker/id6744963429)
|
<p>
|
||||||
|
<img src="https://github.com/neon443/NearFuture/blob/main/Resources/Assets.xcassets/AppIcon.appiconset/NearFutureIcon.png?raw=true" title="dockphobia" alt="dockphobia icon" width="100" />
|
||||||
|
</p>
|
||||||
|
<h3>Near Future</h3>
|
||||||
|
<p>
|
||||||
|
<a href="https://apps.apple.com/us/app/near-future-event-tracker/id6744963429">
|
||||||
|
download
|
||||||
|
<img alt="GitHub Release" src="https://img.shields.io/itunes/v/6744963429">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
make your Dock scared of the mouse
|
||||||
|
<br/>
|
||||||
|
<a href="https://neon443.github.io">
|
||||||
|
made by neon443
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<br/>
|
||||||
|
</div>
|
||||||
|
|
||||||
**Near Future** is a SwiftUI App to help people track upcoming events - Holidays, Trips, Birthdays, Weddings, Anniversaries.
|
**Near Future** is a SwiftUI App to help people track upcoming events - Holidays, Trips, Birthdays, Weddings, Anniversaries.
|
||||||
|
|
||||||
@@ -11,17 +29,18 @@
|
|||||||
- [x] Event colors
|
- [x] Event colors
|
||||||
- [x] Recurrence
|
- [x] Recurrence
|
||||||
- [x] Search
|
- [x] Search
|
||||||
- [ ] Notifications
|
- [x] Notifications
|
||||||
|
- [ ] Mac App
|
||||||
- [ ] Apple Watch App
|
- [ ] Apple Watch App
|
||||||
- [x] Home Screen Widgets
|
- [x] Home Screen Widgets
|
||||||
- [ ] Lock Screen Widgets
|
- [ ] Lock Screen Widgets
|
||||||
- [ ] Later Box
|
- [ ] Later Box
|
||||||
- [ ] Sort by
|
- [ ] Sort by
|
||||||
- [ ] Reorder Events
|
- [ ] Reorder Events
|
||||||
- [ ] Archive
|
- [x] Archive
|
||||||
- [ ] Collaboration
|
- [ ] Collaboration
|
||||||
- [ ] Autocomplete tasks
|
- [ ] Autocomplete tasks
|
||||||
- [ ] Settings
|
- [x] Settings
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
- **Event Creation**: Create events with a name, description, date, recurrence, and an icon
|
- **Event Creation**: Create events with a name, description, date, recurrence, and an icon
|
||||||
@@ -53,4 +72,4 @@ Contributions are welcome! Just follow these steps:
|
|||||||
|
|
||||||
## Used Tools/Frameworks
|
## Used Tools/Frameworks
|
||||||
- Swift & SwiftUI by Apple
|
- Swift & SwiftUI by Apple
|
||||||
- **SFSymbolsPicker** by [alessiorubicini/SFSymbolsPickerForSwiftUI].
|
- **SFSymbolsPicker** by [alessiorubicini/SFSymbolsPickerForSwiftUI].
|
||||||
|
|||||||
@@ -31,54 +31,70 @@
|
|||||||
"size" : "1024x1024"
|
"size" : "1024x1024"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"filename" : "MacNearFutureIcon16.png",
|
||||||
"idiom" : "mac",
|
"idiom" : "mac",
|
||||||
"scale" : "1x",
|
"scale" : "1x",
|
||||||
"size" : "16x16"
|
"size" : "16x16"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"filename" : "MacNearFutureIcon32.png",
|
||||||
"idiom" : "mac",
|
"idiom" : "mac",
|
||||||
"scale" : "2x",
|
"scale" : "2x",
|
||||||
"size" : "16x16"
|
"size" : "16x16"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"filename" : "MacNearFutureIcon32.png",
|
||||||
"idiom" : "mac",
|
"idiom" : "mac",
|
||||||
"scale" : "1x",
|
"scale" : "1x",
|
||||||
"size" : "32x32"
|
"size" : "32x32"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"filename" : "MacNearFutureIcon64.png",
|
||||||
"idiom" : "mac",
|
"idiom" : "mac",
|
||||||
"scale" : "2x",
|
"scale" : "2x",
|
||||||
"size" : "32x32"
|
"size" : "32x32"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"filename" : "MacNearFutureIcon128.png",
|
||||||
"idiom" : "mac",
|
"idiom" : "mac",
|
||||||
"scale" : "1x",
|
"scale" : "1x",
|
||||||
"size" : "128x128"
|
"size" : "128x128"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"filename" : "MacNearFutureIcon256.png",
|
||||||
"idiom" : "mac",
|
"idiom" : "mac",
|
||||||
"scale" : "2x",
|
"scale" : "2x",
|
||||||
"size" : "128x128"
|
"size" : "128x128"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"filename" : "MacNearFutureIcon256.png",
|
||||||
"idiom" : "mac",
|
"idiom" : "mac",
|
||||||
"scale" : "1x",
|
"scale" : "1x",
|
||||||
"size" : "256x256"
|
"size" : "256x256"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"filename" : "MacNearFutureIcon512.png",
|
||||||
"idiom" : "mac",
|
"idiom" : "mac",
|
||||||
"scale" : "2x",
|
"scale" : "2x",
|
||||||
"size" : "256x256"
|
"size" : "256x256"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"filename" : "MacNearFutureIcon512.png",
|
||||||
"idiom" : "mac",
|
"idiom" : "mac",
|
||||||
"scale" : "1x",
|
"scale" : "1x",
|
||||||
"size" : "512x512"
|
"size" : "512x512"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"filename" : "MacNearFutureIcon.png",
|
||||||
"idiom" : "mac",
|
"idiom" : "mac",
|
||||||
"scale" : "2x",
|
"scale" : "2x",
|
||||||
"size" : "512x512"
|
"size" : "512x512"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "NearFutureIcon.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "watchos",
|
||||||
|
"size" : "1024x1024"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"info" : {
|
"info" : {
|
||||||
|
|||||||
|
After Width: | Height: | Size: 893 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 197 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
44
Resources/Assets.xcassets/bloo.appiconset/Contents.json
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "bloo.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "dark"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filename" : "blooDark.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "tinted"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filename" : "NearFutureIconTint.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "bloo.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "watchos",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
Resources/Assets.xcassets/bloo.appiconset/NearFutureIconTint.png
Normal file
|
After Width: | Height: | Size: 632 KiB |
BIN
Resources/Assets.xcassets/bloo.appiconset/bloo.png
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
BIN
Resources/Assets.xcassets/bloo.appiconset/blooDark.png
Normal file
|
After Width: | Height: | Size: 712 KiB |
44
Resources/Assets.xcassets/blue.appiconset/Contents.json
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "blue.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "dark"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filename" : "blueDark.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "tinted"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filename" : "NearFutureIconTint.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "blue.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "watchos",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
Resources/Assets.xcassets/blue.appiconset/NearFutureIconTint.png
Normal file
|
After Width: | Height: | Size: 632 KiB |
BIN
Resources/Assets.xcassets/blue.appiconset/blue.png
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
Resources/Assets.xcassets/blue.appiconset/blueDark.png
Normal file
|
After Width: | Height: | Size: 743 KiB |
44
Resources/Assets.xcassets/green.appiconset/Contents.json
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "green.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "dark"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filename" : "greenDark.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "tinted"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filename" : "NearFutureIconTint.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "green.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "watchos",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 632 KiB |
BIN
Resources/Assets.xcassets/green.appiconset/green.png
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
Resources/Assets.xcassets/green.appiconset/greenDark.png
Normal file
|
After Width: | Height: | Size: 734 KiB |
44
Resources/Assets.xcassets/pink.appiconset/Contents.json
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "pink.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "dark"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filename" : "pinkDark.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "tinted"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filename" : "NearFutureIconTint.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "pink.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "watchos",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
Resources/Assets.xcassets/pink.appiconset/NearFutureIconTint.png
Normal file
|
After Width: | Height: | Size: 632 KiB |
BIN
Resources/Assets.xcassets/pink.appiconset/pink.png
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
BIN
Resources/Assets.xcassets/pink.appiconset/pinkDark.png
Normal file
|
After Width: | Height: | Size: 728 KiB |
44
Resources/Assets.xcassets/purple.appiconset/Contents.json
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "purple.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "dark"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filename" : "purpleDark.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "tinted"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filename" : "NearFutureIconTint.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "purple.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "watchos",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 632 KiB |
BIN
Resources/Assets.xcassets/purple.appiconset/purple.png
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
Resources/Assets.xcassets/purple.appiconset/purpleDark.png
Normal file
|
After Width: | Height: | Size: 746 KiB |
44
Resources/Assets.xcassets/red.appiconset/Contents.json
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "red.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "dark"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filename" : "redDark.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "tinted"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filename" : "NearFutureIconTint.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "red.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "watchos",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
Resources/Assets.xcassets/red.appiconset/NearFutureIconTint.png
Normal file
|
After Width: | Height: | Size: 632 KiB |
BIN
Resources/Assets.xcassets/red.appiconset/red.png
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
Resources/Assets.xcassets/red.appiconset/redDark.png
Normal file
|
After Width: | Height: | Size: 751 KiB |
@@ -1,38 +0,0 @@
|
|||||||
{
|
|
||||||
"colors" : [
|
|
||||||
{
|
|
||||||
"color" : {
|
|
||||||
"color-space" : "display-p3",
|
|
||||||
"components" : {
|
|
||||||
"alpha" : "1.000",
|
|
||||||
"blue" : "0.000",
|
|
||||||
"green" : "0.000",
|
|
||||||
"red" : "0.000"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"idiom" : "universal"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"appearances" : [
|
|
||||||
{
|
|
||||||
"appearance" : "luminosity",
|
|
||||||
"value" : "dark"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"color" : {
|
|
||||||
"color-space" : "display-p3",
|
|
||||||
"components" : {
|
|
||||||
"alpha" : "1.000",
|
|
||||||
"blue" : "1.000",
|
|
||||||
"green" : "1.000",
|
|
||||||
"red" : "1.000"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"idiom" : "universal"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"info" : {
|
|
||||||
"author" : "xcode",
|
|
||||||
"version" : 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
44
Resources/Assets.xcassets/yellow.appiconset/Contents.json
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "yellow.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "dark"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filename" : "yellowDark.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "tinted"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filename" : "NearFutureIconTint.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "ios",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "yellow.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"platform" : "watchos",
|
||||||
|
"size" : "1024x1024"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 632 KiB |
BIN
Resources/Assets.xcassets/yellow.appiconset/yellow.png
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
Resources/Assets.xcassets/yellow.appiconset/yellowDark.png
Normal file
|
After Width: | Height: | Size: 743 KiB |