Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
anonymousperson
8,573 PointsRepresent Data Visually and Be Able to Update It (Swift)
I am a beginner coder. And I wanted to learn programming from my favourite app. The app I want to learn is Streak.
It is a habit to do list. Create a habit and you can track and mark it done everyday.
The 1st photo show the habit need to be done. Tap on the habit, the 2nd photo will show up. It's an overview of how you did in current month. The dark circle is "Done", the 'X' is "Not Done When It Should Be Done", the light circle is "Not Done"
The 'overview picture' is the related part that I am curious to learn from this enthusiastic community.
My question:
How can we code a photo that shows the days of that month started with the right day (Monday, Tuesday, Wednesday, Thursday, Friday) without providing all the photo for every single case?
How can we code it that we can update the individual day to show the correct status (Done, Not Done)?
Thank you for all the patience for reading as this is my 1st time posting a question.