heyjaywilson / peakfit

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

feat: :sparkles: add a setting for rest time #66

Closed mike011 closed 1 month ago

mike011 commented 1 month ago

Description

In settings you can now pick a rest time in minutes and seconds. These values are stored to the AppStorage under restTimeMinutes and restTimeSeconds. SwiftUI currently doesn’t have a time picker that doesn’t show AM / PM. I could’ve used a UIKIT picker, but I thought this looked good enough.

Related Issue

https://github.com/heyjaywilson/peakfit/issues/22

How Has This Been Tested?

Picked various values from the settings screen and varied they are still set on relaunch and navigating back and forth.

Screenshots (if appropriate):

https://github.com/user-attachments/assets/e1bff3f0-ddd2-4e95-ada1-7663ca13bcbf

Types of changes

Checklist:

mike011 commented 1 month ago

Nice work. Just some files that shouldn't be committed.

Oops, sorry about that, should be fixed now.