remove notification title stuff from onboarding
This commit is contained in:
@@ -13,10 +13,9 @@ import UserNotifications
|
||||
final class OnboardingData: NSObject, ObservableObject, Codable {
|
||||
@Published var date: Date = Date()
|
||||
@Published var inputDay: DayOptions = .Today
|
||||
@Published var title: String = OnboardingTitle.titleOptions[0]
|
||||
|
||||
enum CodingKeys: CodingKey {
|
||||
case date, inputDay, title
|
||||
case date, inputDay
|
||||
}
|
||||
|
||||
func encode(to encoder: Encoder) throws {
|
||||
@@ -24,7 +23,6 @@ final class OnboardingData: NSObject, ObservableObject, Codable {
|
||||
|
||||
try container.encode(date, forKey: .date)
|
||||
try container.encode(inputDay, forKey: .inputDay)
|
||||
try container.encode(title, forKey: .title)
|
||||
}
|
||||
|
||||
required init(from decoder: Decoder) throws {
|
||||
@@ -32,7 +30,6 @@ final class OnboardingData: NSObject, ObservableObject, Codable {
|
||||
|
||||
date = try container.decode(Date.self, forKey: .date)
|
||||
inputDay = try container.decode(DayOptions.self, forKey: .inputDay)
|
||||
title = try container.decode(String.self, forKey: .title)
|
||||
}
|
||||
|
||||
func ableToVoteBasedOnCurentTime() -> Bool {
|
||||
@@ -70,7 +67,6 @@ extension OnboardingData: RawRepresentable {
|
||||
|
||||
self.date = result.date
|
||||
self.inputDay = result.inputDay
|
||||
self.title = result.title
|
||||
}
|
||||
|
||||
public var rawValue: String {
|
||||
|
||||
Reference in New Issue
Block a user