CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

VitaleSDK 1.4

VitaleSDK 1.4

Maintained by MyVitale.



 
Depends on:
Alamofire>= 0
SwiftyJSON= 5.0.0
SwiftDate>= 0
Localize-Swift= 3.2.0
FMDB= 2.7.5
YoutubePlayer-in-WKWebView= 0.3.4
HCVimeoVideoExtractor= 0.0.1
Instructions= 1.3.1
Charts= 3.6.0
 

  • By
  • Miguel Muñoz

VitaleSDK

CI Status Version License Platform

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.