From d1e9428883c4192619af74d9ccfe03b7c63c0e7e Mon Sep 17 00:00:00 2001 From: Trey t Date: Wed, 5 Jul 2023 22:22:10 -0500 Subject: [PATCH] WIP --- Werkout_ios/Views/AllWorkouts/AllWorkoutsView.swift | 7 ++++++- .../Views/CreateWorkout/CreateWorkoutMainView.swift | 10 ++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Werkout_ios/Views/AllWorkouts/AllWorkoutsView.swift b/Werkout_ios/Views/AllWorkouts/AllWorkoutsView.swift index 530affe..7cecdb4 100644 --- a/Werkout_ios/Views/AllWorkouts/AllWorkoutsView.swift +++ b/Werkout_ios/Views/AllWorkouts/AllWorkoutsView.swift @@ -273,8 +273,13 @@ struct AllWorkoutsListView: View { .refreshable { refresh() } + TextField("Filter", text: $searchString) - .padding(.leading) + .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) } } } diff --git a/Werkout_ios/Views/CreateWorkout/CreateWorkoutMainView.swift b/Werkout_ios/Views/CreateWorkout/CreateWorkoutMainView.swift index 27e868e..b33071b 100644 --- a/Werkout_ios/Views/CreateWorkout/CreateWorkoutMainView.swift +++ b/Werkout_ios/Views/CreateWorkout/CreateWorkoutMainView.swift @@ -14,15 +14,21 @@ struct CreateWorkoutMainView: View { var body: some View { VStack { + Divider() + TextField("Title", text: $viewModel.title) - .padding() + .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("Description", text: $viewModel.description) .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) +// .cornerRadius(8) List() { ForEach($viewModel.superSets, id: \.id) { superset in