heyjaywilson / peakfit

Strength exercise iOS app written in Swift
Apache License 2.0
16 stars 10 forks source link

feat(exercises): :sparkles: Show a modal to select the exercises of an existing ExerciseList #67

Open samuelsainz opened 1 month ago

samuelsainz commented 1 month ago

Description

In the View to see the details of an ExerciseList, we want to have a + button in the toolbar to add other exercises. To do that the SelectExercisesView is shown as a modal when the + button is tapped.

Related Issue

Closes #15

How Has This Been Tested?

Tested the next cases:

Case 1

Result: The exercise is shown in the list

Case 2

Result: No exercises are shown

Case 3

Result: The correct exercises are shown

Case 4:

Result: The list created in Case 1 contains the right exercises

Screenshots (if appropriate):

peakfit-screenrecording

Types of changes

Checklist:

heyjaywilson commented 1 month ago

This is a good start. Only thing is can the plus button be added into the menu that already exists with a title "Add Exercise"?

samuelsainz commented 1 month ago

@heyjaywilson sure thing! Sorry that I missed the new menu, I've rebased and added the option to the menu in another section.

Simulator Screenshot - iPhone 16 Pro - 2024-10-20 at 17 53 29

let me know if that works :)