switch db between debug and release

on widgets if its before the voting time show yesterdays vote, if after either show no vote or current vote

user shared user defaults
This commit is contained in:
Trey t
2022-01-28 10:27:33 -06:00
parent a45c2f0639
commit 0109aee8f8
6 changed files with 30 additions and 12 deletions

View File

@@ -7,6 +7,16 @@
import Foundation
struct Constants {
static let groupShareId = "group.com.88oak.ifeel"
}
struct GroupUserDefaults {
static var groupDefaults: UserDefaults {
return UserDefaults(suiteName: Constants.groupShareId)!
}
}
class Random {
static var tomorrowMidnightThirty: Date {
let components = DateComponents(hour: 0, minute: 30, second: 0)