VitaleSDK
Description
VitaleSDK is a comprehensive intelligent, automatic, and adaptive training framework programmed in Swift for iOS and iPadOS. Is the most convenient way of integrating our physical activity training features with any third party.
Installation
VitaleSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'VitaleSDK'
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 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).
Training.sharedInstance.start(with: user_id, clientId: client_id, clientSecret: client_secret)
Sport profile
Training.sharedInstance.showSportProfile()
Intelligent trainer
Training.sharedInstance.showVirtualPT()
Custom configuration
You can customize different PT module interfaces using this functions:
Main color
Main SDK colour can be personalized. All buttons and main elements of the PT module will turn the selected colour.
Training.sharedInstance.setMainColor(color: mainColor)
Navigation bar background color
Customize the NavigationBar background colour of the PT module.
Training.sharedInstance.setNavigationBarColor(color: backgroundColor)
Navigation tint color
Customize the NavigationBar tint colour of the PT module.
Training.sharedInstance.setNavigationTintColor(color: tintColor)
Navigation bar logo
Add your App’s logo to the navigationBar.
Training.sharedInstance.setNavigationLogo(color: logo)
Author
MyVitale, [email protected]
License
VitaleSDK is available under the MIT license. See the LICENSE file for more info.