VitaleHealthSDK
Description
VitaleHealthSDK is a comprehensive intelligent, automatic, and adaptive training and nutrition framework programmed in Swift for iOS and iPadOS.
Installation
VitaleHealthSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'VitaleHealthSDK', :git => 'https://github.com/miguelmunozfer/VitaleHealthSDK'
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
Requeriments
It is necessary to drag the 'vitaleCredentials' file into the Xcode project.
You need to add NSCalendarsUsageDescription, NSCameraUsageDescription, NSHealthUpdateUsageDescription, NSMicrophoneUsageDescription and NSHealthShareUsageDescription in your info.plist.
Simple 1-line setup
Use your MyVitale credentials for initiating SDK. Your user_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).
VitaleSDK.shared.startSDKWithConfig(config: "vitaleCredentials", userID: "USER_ID")
Show health module
VitaleSDK.shared.showVitale()
Custom navigation bar logo
Add your App’s logo to the navigationBar.
VitaleSDK.shared.setSmallLogo(UIImage(named: "IMAGE_NAME"))
Author
MyVitale, [email protected]
License
VitaleSDK is available under the MIT license. See the LICENSE file for more info.