From 53f4552742795fc50641afc4b2dee4cfe15ca9c3 Mon Sep 17 00:00:00 2001 From: erik-keifer <69150393+erik-keifer@users.noreply.github.com> Date: Thu, 9 Apr 2026 22:28:48 -0700 Subject: [PATCH] Update BehaviorOnboardingView.swift Allow users to edit sleep behavior factors in Settings --- .../Screens/BehaviorOnboardingView.swift | 37 +++++++++++++++++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/SleepFocus/Screens/BehaviorOnboardingView.swift b/SleepFocus/Screens/BehaviorOnboardingView.swift index e149783..50fd9de 100644 --- a/SleepFocus/Screens/BehaviorOnboardingView.swift +++ b/SleepFocus/Screens/BehaviorOnboardingView.swift @@ -2,7 +2,7 @@ import SwiftUI // MARK: - Question Model -private struct BehaviorQuestion: Identifiable { +struct BehaviorQuestion: Identifiable { let id: Int let category: String let categoryIcon: String @@ -15,7 +15,7 @@ private struct BehaviorQuestion: Identifiable { // MARK: - Questions -private let allQuestions: [BehaviorQuestion] = [ +let allQuestions: [BehaviorQuestion] = [ // BEHAVIOR BehaviorQuestion( @@ -336,7 +336,7 @@ struct BehaviorOnboardingView: View { // MARK: - Answer Button -private struct AnswerButton: View { +struct AnswerButton: View { let label: String let answer: BehaviorAnswer let selected: BehaviorAnswer @@ -380,3 +380,34 @@ private struct AnswerButton: View { print("Onboarding complete") } } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +