fix: issue #148 - for onboarding first ask to rate today / tomorrow then the next screen shoudl be time. if the user select today make the default time 9pm, if hte user selects tomorrow default time is 9am
Automated fix by Tony CI v3. Refs #148 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,12 @@ import UserNotifications
|
||||
// this is getting passed around and filled out
|
||||
// class and vars
|
||||
final class OnboardingData: NSObject, ObservableObject, Codable {
|
||||
@Published var date: Date = Date()
|
||||
@Published var date: Date = {
|
||||
var components = Calendar.current.dateComponents([.year, .month, .day], from: Date())
|
||||
components.hour = 21 // 9 PM default (matches default .Today selection)
|
||||
components.minute = 0
|
||||
return Calendar.current.date(from: components) ?? Date()
|
||||
}()
|
||||
@Published var inputDay: DayOptions = .Today
|
||||
|
||||
enum CodingKeys: CodingKey {
|
||||
|
||||
Reference in New Issue
Block a user