init commit - bring project over from Mood

This commit is contained in:
Trey t
2022-01-10 09:04:38 -06:00
parent ff5d9bea18
commit 58697bf965
30 changed files with 1840 additions and 121 deletions

20
Shared/Random.swift Normal file
View File

@@ -0,0 +1,20 @@
//
// Random.swift
// Feels
//
// Created by Trey Tartt on 1/9/22.
//
import Foundation
class Random {
static var widgetUpdateTime: Date {
let components = DateComponents(hour: 0, minute: 30, second: 0)
var updateTime = Date()
if let tomorrow = Calendar.current.date(byAdding: .day, value: 1, to: Date()),
let tomorrowMorning = Calendar.current.date(byAdding: components, to: tomorrow) {
updateTime = tomorrowMorning
}
return updateTime
}
}