This commit is contained in:
Trey t
2023-07-05 22:08:47 -05:00
parent 4bcfd6a7fa
commit e43e5b11bf
8 changed files with 207 additions and 28 deletions

View File

@@ -19,6 +19,7 @@ struct LoginView: View {
.font(.title)
TextField("Email", text: $email)
.textContentType(.username)
.autocapitalization(.none)
.frame(height: 55)
.textFieldStyle(PlainTextFieldStyle())
@@ -26,7 +27,8 @@ struct LoginView: View {
.overlay(RoundedRectangle(cornerRadius: 16).stroke(Color(uiColor: .clear))).background(Color(uiColor: .init(red: 200/255, green: 200/255, blue: 200/255, alpha: 0.2)))
.cornerRadius(8)
TextField("Password", text: $password)
SecureField("Password", text: $password)
.textContentType(.password)
.autocapitalization(.none)
.frame(height: 55)
.textFieldStyle(PlainTextFieldStyle())

View File

@@ -330,23 +330,6 @@ struct ExerciseListView: View {
videoExercise = obj.exercise
}
}
if i == bridgeModule.currentExerciseIdx {
HStack {
if obj.exercise.isReps {
Text("is reps")
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
if obj.exercise.isWeight {
Text("is weight")
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
if obj.exercise.isDuration {
Text("is duration")
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}
}
}
}
.onChange(of: bridgeModule.currentExerciseIdx, perform: { newValue in