summaryrefslogtreecommitdiff
path: root/Technology/swift cal tracker.md
blob: 8bed56616daf0a073e0731ff86f22a686abf1491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Write a swift ios app. Use sqlite3 for all data. Have sl3 export option.
An app that is a nutrition tracker inspired from opennutritracker.
First app check if profile is created and make user create it if not.

#V2 add exercise logging
#V3 archived food items

Have 3 tabs - Home, Diary, Profile

# Home
The home tab consist of 3 things, vertical scroll view of daily summary widget, Food Log widget, Activity Log widget + a button to add a log

track daily data summary widget:
cicular progress indicator (Calories)  as big circle & text
Macronutrient breakdown (Carbs/Fat/Protein) as text only: x/y

log all daily food item widget
like opennutri... (see pic # x)
log physical activity widget
like opennutri...


# Profile
Age, Height
Weight

# Diary
a calendar UI that tracks past daily logs
Food log widget below calendar




# ALL SL3 tables

Profile(Age, Height, CaloriesGoal,CarbsGoal,FatGoal,ProteinGoal)
WeightLogDaily(CAN BE NULL IF WANT TO SKIP A LOG)(Date,Weight)
FoodItem(Calories,Carbs,Fat,Protein) portion?
FoodLog(Date,FoodItems)


#
THINK IN TERMS OF CRUD
CREATE
READ
UPDATE
DELETE