wallet/Shared/Defaults.swift
2023-10-26 14:54:54 +03:00

28 lines
693 B
Swift

// Copyright © 2021 Tokenary. All rights reserved.
import Foundation
struct Defaults {
private static let userDefaults = UserDefaults.standard
static var latestReviewRequestDate: Date? {
get {
return userDefaults.value(forKey: "latestReviewRequestDate") as? Date
}
set {
userDefaults.set(newValue, forKey: "latestReviewRequestDate")
}
}
static var reviewRequestsGoodMomentsCount: Int {
get {
return userDefaults.integer(forKey: "reviewRequestsGoodMomentsCount")
}
set {
userDefaults.set(newValue, forKey: "reviewRequestsGoodMomentsCount")
}
}
}