From 0252b0bc41252364866dc549749a93fb0abd5f85 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 9 Aug 2025 17:28:08 +0200 Subject: [PATCH] fix: rename ContentView to QuizView --- QuizApp/Views/CategorySelectionView.swift | 2 +- QuizApp/Views/{ContentView.swift => QuizView.swift} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename QuizApp/Views/{ContentView.swift => QuizView.swift} (99%) diff --git a/QuizApp/Views/CategorySelectionView.swift b/QuizApp/Views/CategorySelectionView.swift index 2c6f742..165c408 100644 --- a/QuizApp/Views/CategorySelectionView.swift +++ b/QuizApp/Views/CategorySelectionView.swift @@ -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) diff --git a/QuizApp/Views/ContentView.swift b/QuizApp/Views/QuizView.swift similarity index 99% rename from QuizApp/Views/ContentView.swift rename to QuizApp/Views/QuizView.swift index e12bd91..424457b 100644 --- a/QuizApp/Views/ContentView.swift +++ b/QuizApp/Views/QuizView.swift @@ -8,7 +8,7 @@ import SwiftUI import AudioToolbox -struct ContentView: View { +struct QuizView: View { @ObservedObject var viewModel = ViewModel() @AppStorage("globalScore") var score: Int = 0