This commit is contained in:
Trey t
2023-07-07 14:02:50 -05:00
parent 4fc5127011
commit f7ab828b28
9 changed files with 3085 additions and 200 deletions

View File

@@ -87,6 +87,7 @@ struct AllWorkoutsView: View {
// UserStore.shared.logout()
maybeUpdateShit()
}
.background(Color(uiColor: .systemGroupedBackground))
.sheet(item: $selectedWorkout) { item in
let viewModel = WorkoutDetailViewModel(workout: item)
WorkoutDetailView(viewModel: viewModel)
@@ -191,7 +192,7 @@ struct AllWorkoutPickerView: View {
}
}
.pickerStyle(.segmented)
.padding()
.padding([.top, .leading, .trailing])
if bridgeModule.isInWorkout {
Button(action: {
@@ -274,12 +275,14 @@ struct AllWorkoutsListView: View {
refresh()
}
TextField("Filter", text: $searchString)
.frame(height: 55)
.textFieldStyle(PlainTextFieldStyle())
.padding([.horizontal], 4)
.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("Filter" ,text: $searchString)
.padding()
.textFieldStyle(OvalTextFieldStyle())
// TextField("Filter", text: $searchString)
// .padding()
// .overlay(RoundedRectangle(cornerRadius: 10.0).strokeBorder(Color(uiColor: .darkGray), style: StrokeStyle(lineWidth: 1.0)))
// .padding()
// .background(Color(uiColor: .systemGroupedBackground))
}
}
}