NutritionIASDK
Description
NutritionIASDK is a comprehensive intelligent, automatic, and adaptive nutrition framework programmed in Swift for iOS and iPadOS. Is the most convenient way of integrating our nutrition features with any third party.
Installation
NutritionIASDK is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'NutritionIASDK', :git => 'https://github.com/miguelmunozfer/VitaleNutritionIASDK'
Add the following lines to the end of the podfile file
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
end
Usage
Simple 1-line setup
Use your credentials for initiating SDK. Your APP_ID must be permanent and unique for each App user (any user id, including the ones you are already using in your system, can be used).
NutritionSDK.sharedInstance.startSession(with: MEMBER_ID, appID: APP_ID, password: APP_PASSWORD)
Nutrition profile
NutritionSDK.sharedInstance.showProfile()
Show nutrition module
NutritionSDK.sharedInstance.showNutritionModule()
Custom configuration
You can customize different Nutrition module interfaces using this functions:
Main color
Main SDK colour can be personalized. All buttons and main elements of the Nutrition module will turn the selected colour.
NutritionSDK.sharedInstance.setMainColor(color: MAIN_APP_COLOR)