This repository contains a simple example iOS app that displays nutrition information for any text input. It queries the API Ninjas Nutrition API to get nutrition data and uses SwiftUI to render and display the results.
You must have a valid API Ninjas API Key to use the API. You can get a free API key from https://api-ninjas.com/register
This example app introduces the following technologies/concepts:
- Xcode
- Swift
- SwiftUI toolkit
- Making API Calls and parsing the response in Swift
Browse the full list of APIs from API Ninjas here.
Once you download the code, open NutritionViewer.xcodeproj in XCode and click the run button using either the simulator or your connected device.
Licensed under the Apache License, Version 2.0.
