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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user