Swift Package Manager
https://github.com/truvhq/ios-sdk as a package dependency.
To install the SDK with CocoaPods, add
TruvSDK as one of your target dependencies in your Podfile:
use_frameworks! target 'MyApp' do pod 'TruvSDK' end
Please be sure to run
pod update and use
pod install --repo-update to ensure you have the most recent version of the SDK installed.
The TruvBridgeView is a
UIView that you can integrate into your app's flow like so:
import TruvSDK let truvBridgeView = TruvBridgeView(token: token, delegate: self) view.addSubview(truvBridgeView) // add constraints if needed
TruvBridgeView, end-users can select their employer, authenticate with their payroll platform login credentials, and authorize the direct deposit change. Throughout the process, different events will be emitted to the delegate
func onEvent(_ event: TruvEvent) method.
TruvDelegate protocol is set up such that every event goes through the required
func onEvent(_ event: TruvEvent) handler.
See the events page of the documentation for more details.