Didier
@DidierCodeSwift
I build iOS apps.
The MVP is now done. All the features I needed are working and the UI looks decent. Now, I'll use it and polish it for a few weeks while I work on the next project.
i was trying to show a graph for progress over time but couldn't figure out how to make this screen work. So I divided it in two, with a preview of the graph in the first one.
Querying #SwiftData is not the most straightforward. But you can just define inverse relationships, and that helps a lot.
TIL, you can make SwiftUI graphs curved with a single line.
Redesigned the workout history to match the green palette. Next is the ability to delete workouts and sets. Then the fun begins with graphs and stats.
I’ve been working the last few days on improving the UX of the app. - Changed style and colors of the grid screen. - Added border gradient and animations to weight scroll. - It now goes back to the last recorded weight when switching exercises. I feel there’s things I’m missing
Remember kids, initialize your state properly. I just wasted more time than I'd like to admit because I wasn't setting up chosenWeights properly and #swiftui was ignoring it.
I was overcomplicating the initial load with a complex structure and reading from a json file. Now it’s a straightforward mock service and I load SwiftData when the app loads. It works and is relatively easy to extend.
For years I’ve looked for an app to track the weight I lift with a decent UX and haven’t found it. So I started building it myself.
United States Trends
- 1. Marshawn Kneeland 17.2K posts
- 2. Nancy Pelosi 21.5K posts
- 3. #MichaelMovie 29.9K posts
- 4. ESPN Bet 2,176 posts
- 5. #영원한_넘버원캡틴쭝_생일 23.4K posts
- 6. #NO1ShinesLikeHongjoong 23.6K posts
- 7. Gremlins 3 2,564 posts
- 8. Jaafar 9,067 posts
- 9. Good Thursday 35.5K posts
- 10. Chimecho 4,670 posts
- 11. #thursdayvibes 2,855 posts
- 12. Madam Speaker N/A
- 13. Joe Dante N/A
- 14. Baxcalibur 3,248 posts
- 15. #LosdeSiemprePorelNO N/A
- 16. Happy Friday Eve N/A
- 17. Penn 9,408 posts
- 18. Votar No 27.8K posts
- 19. Chris Columbus 2,272 posts
- 20. Barstool 1,611 posts
Something went wrong.
Something went wrong.