Skip to content

Commit

Permalink
Fix MultiChoiceScreen preview
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentTreguier committed Jul 25, 2024
1 parent ef40af5 commit 2dbd349
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions Fyreplace/Views/Screens/MultiChoiceScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,22 @@ struct MultiChoiceScreen: View {
}
}

#Preview {
NavigationStack {
#if DEBUG
struct Preview: View {
@State
var choice = Destination.feed

MultiChoiceScreen(
choices: [.feed, .settings],
choice: $choice
)
var body: some View {
NavigationStack {
MultiChoiceScreen(
choices: [.feed, .settings],
choice: $choice
)
}
}
}
}

#Preview {
Preview()
}
#endif

0 comments on commit 2dbd349

Please sign in to comment.