Hey,
I am using food.search api in swift, it returns me all food items with response:
<food_id>4384</food_id>
<food_name>Plain French Toast</food_name>
<food_type>Generic</food_type>
<food_description>Per 342g - Calories: 835kcal | Fat: 32.28g | Carbs: 105.43g | Protein: 29.41g</food_description>
Food description is a string including all info, can someone help how can i get all quantity type because its becoming hard to get the quatity type e.g: g , oz , cup from string. is there any other way to get what can food quantity be?
Thanks