Distribution repository for the pre-built TradeItAccountOpeningSDK
binary along with all pre-built dependencies.
- iOS 10.0 or higher
- Swift 4.2 or higher
- Check the podspec to verify dependency compatability in your applicaiton. note, this SDK is only compatible with the TradeItIosTicketSDK2 v2.0.11+
- Cocoapods
Installing and linking the framework will provide the following header:
import TradeItAccountOpeningSDK
import <TradeItAccountOpeningSDK/TradeItAccountOpeningSDK-Swift.h>
Add the following to your Podfile
source 'https://github.com/tradingticket/SpecRepo'
target 'YourProjectTargetName' do
use_frameworks!
pod 'TradeItAccountOpeningSDK'
end
- In your application's
Info.plist
, add aString
entry for thePrivacy - Camera Usage Description
key (if one does not already exist). Set the key value toBrokers will require a picture of your ID in order to open a brokerage account.
or another user-friendly message that will be displayed to your user at the time the application requests camera access. - For Obj-C apps: Set
Project > Build Settings (All) > Swift Language Version
to >=4.2
- For Obj-C apps: Set
Target > Build Settings (All) > Always Embed Swift Standard Libraries
toYES
- Configure the SDK with your credentials:
// When the app loads
TradeItAccountOpeningSDK.configure(
apiKey: "YOUR TRADEIT API KEY",
environment: .production
)
// When the app loads
[TradeItAccountOpeningSDK configureWithApiKey:@"YOUR TRADEIT API KEY"
environment:TradeItAccountOpeningEnvironmentProduction];
See the provided example applications for examples of integrating with CocoaPods with ObjC and Swift.
// When the user wants to launch account opening
TradeItAccountOpeningSDK.launch(onViewController: self)
// When the user wants to launch account opening
TradeItAccountOpeningSDK.launch(onViewController: self)