Skip to content

Commit 3cb4239

Browse files
committed
fix dark mode bug
1 parent 13cc30b commit 3cb4239

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

FitCount/FitCountApp.swift

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
import SwiftUI
99
import QuickPoseCore
1010

11+
12+
struct Exercise: Identifiable, Hashable {
13+
let id = UUID()
14+
let name: String
15+
let details: String
16+
let features: [QuickPose.Feature]
17+
// Add more properties as needed
18+
}
19+
1120
let exercises = [
1221
Exercise(
1322
name: "Biceps Curls",
@@ -22,13 +31,6 @@ let exercises = [
2231

2332
]
2433

25-
struct Exercise: Identifiable, Hashable {
26-
let id = UUID()
27-
let name: String
28-
let details: String
29-
let features: [QuickPose.Feature]
30-
// Add more properties as needed
31-
}
3234

3335
@main
3436
struct FitCountApp: App {

FitCount/Workout/InstructionsView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
// InstructionsView.swift
33
// FitCounter
44
//
5-
// Created by Денис Волхонский on 02.06.2023.
5+
// Created by QuickPose.ai on 02.06.2023.
66
//
77

88
import SwiftUI
99

1010
struct InstructionsView: View {
1111
var body: some View {
1212
VStack {
13-
Color.white
13+
Color(UIColor.systemBackground)
1414
.ignoresSafeArea()
1515
.overlay(
1616
VStack (spacing: 30){

FitCount/Workout/VolumeChangeView.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,9 @@ func getCurrentVolume() -> Float {
3939
struct VolumeChangeView: View {
4040
@State private var soundLevel: Float = getCurrentVolume()
4141

42-
init() {
43-
}
44-
4542
var body: some View {
4643
VStack {
47-
Color.white
44+
Color(UIColor.systemBackground)
4845
.ignoresSafeArea()
4946
.overlay(
5047
VStack (spacing: 30){

FitCount/Workout/WorkoutResultsView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ struct WorkoutResultsView: View {
4444
Spacer()
4545
}
4646
.navigationBarBackButtonHidden(true)
47-
// .navigationBarTitle("Results")
4847
.padding()
49-
.background(Color.white)
48+
.background(Color(UIColor.systemBackground))
5049
}
5150
}
5251
}

0 commit comments

Comments
 (0)