I am using food.search api in swift, it returns me all food items with response:
<food_name>Plain French Toast</food_name>
<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?