Skip to content

[Office Hours] Onboarding Questionnaire #125

Discussion options

You must be logged in to vote

@MiguelAFH I think you are on the right track here! Spezi Questionnaire is the right module to use, and it works great in combination with Spezi Onboarding. You can use the results closure to trigger the next step on the onboarding step. You can use the toolbarVisibility modifier to hide the navigation bar presented by the OnboardingStack as the QuestionnaireView renders its own navigation stack.

This might be a small example that you can put in your onboarding stack:

import SpeziOnboarding
import SpeziQuestionnaire
import SwiftUI


struct QuestionnaireDuringOnboardingExample: View {
    @Environment(OnboardingNavigationPath.self) private var onboardingNavigationPath
    // ...
    
    
…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MiguelAFH
Comment options

MiguelAFH Feb 11, 2025
Collaborator Author

@PSchmiedmayer
Comment options

Answer selected by PSchmiedmayer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants