@@ -15,11 +15,9 @@ struct TitleNavBarItem: View {
1515 var body : some View {
1616 VStack {
1717 Text ( title)
18- . foregroundColor ( Color . gray)
1918 . font ( . subheadline)
2019 }
2120 . frame ( maxWidth: . infinity, maxHeight: . infinity)
22- . background ( Color . white)
2321 }
2422}
2523
@@ -52,19 +50,16 @@ struct ExerciseDetailsView: View {
5250 VStack {
5351 Text ( " Select the number of reps " )
5452 . font ( . headline)
55- . foregroundColor ( . black)
5653 . padding ( . top, 8 )
5754
5855 Picker ( " Reps " , selection: $nReps) {
5956 ForEach ( 1 ... 100 , id: \. self) { number in
6057 Text ( " \( number) reps " )
61- . foregroundColor ( . black)
6258 }
6359 }
6460 . pickerStyle ( WheelPickerStyle ( ) )
6561 }
6662 . clipped ( )
67- . background ( Color . white)
6863 . cornerRadius ( 10 )
6964 . shadow ( color: Color . black. opacity ( 0.2 ) , radius: 4 , x: 0 , y: 2 )
7065 . padding ( )
@@ -75,15 +70,13 @@ struct ExerciseDetailsView: View {
7570 VStack {
7671 Text ( " Select the time of the exercise " )
7772 . font ( . headline)
78- . foregroundColor ( . black)
7973 . padding ( . top, 8 )
8074
8175 HStack {
8276
8377 Picker ( " Minutes " , selection: $nMinutes) {
8478 ForEach ( 0 ... 30 , id: \. self) { number in
8579 Text ( " \( number) min " )
86- . foregroundColor ( . black)
8780 }
8881 }
8982 . onChange ( of: nMinutes) { min in
@@ -98,7 +91,6 @@ struct ExerciseDetailsView: View {
9891 Picker ( " Seconds " , selection: $nSeconds) {
9992 ForEach ( 0 ... 59 , id: \. self) { number in
10093 Text ( " \( number) sec " )
101- . foregroundColor ( . black)
10294 }
10395 }
10496 . onChange ( of: nSeconds) { sec in
@@ -114,7 +106,6 @@ struct ExerciseDetailsView: View {
114106
115107 }
116108 . clipped ( )
117- . background ( Color . white)
118109 . cornerRadius ( 10 )
119110 . shadow ( color: Color . black. opacity ( 0.2 ) , radius: 4 , x: 0 , y: 2 )
120111 . padding ( ) . pagerTabItem ( tag: 2 ) {
@@ -126,7 +117,7 @@ struct ExerciseDetailsView: View {
126117 Text ( " Start workout " )
127118 . foregroundColor ( . white)
128119 . padding ( )
129- . background ( Color ( #colorLiteral ( red : 0.3254901961 , green : 0.4431372549 , blue : 1 , alpha : 1 ) ) ) // Set background color to the main color
120+ . background ( . indigo ) // Set background color to the main color
130121 . cornerRadius ( 8 ) // Add corner radius for a rounded look
131122
132123 }
0 commit comments