fix: rename ContentView to QuizView

This commit is contained in:
2025-08-09 17:28:08 +02:00
parent 255a396263
commit 0252b0bc41
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -8,7 +8,7 @@
import SwiftUI
import AudioToolbox
struct ContentView: View {
struct QuizView: View {
@ObservedObject var viewModel = ViewModel()
@AppStorage("globalScore") var score: Int = 0