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