fix: rename ContentView to QuizView
This commit is contained in:
@@ -72,7 +72,7 @@ struct CategorySelectionView: View {
|
||||
// Liste der Kategorien
|
||||
VStack(spacing: 12) {
|
||||
ForEach(viewModel.availableCategories, id: \.self) { category in
|
||||
NavigationLink(destination: ContentView(viewModel: viewModel, category: category)) {
|
||||
NavigationLink(destination: QuizView(viewModel: viewModel, category: category)) {
|
||||
HStack {
|
||||
Image(systemName: "play.circle.fill")
|
||||
.foregroundColor(.blue)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
import SwiftUI
|
||||
import AudioToolbox
|
||||
|
||||
struct ContentView: View {
|
||||
struct QuizView: View {
|
||||
|
||||
@ObservedObject var viewModel = ViewModel()
|
||||
@AppStorage("globalScore") var score: Int = 0
|
||||
Reference in New Issue
Block a user