Swiftpack.co - truvhq/ios-sdk as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by truvhq.
truvhq/ios-sdk 1.1.4
iOS SDK for Truv Bridge
⭐️ 0
🕓 1 week ago
iOS
.package(url: "https://github.com/truvhq/ios-sdk.git", from: "1.1.4")

TruvSDK

Requirements

Installation

The TruvSDK is available via Swift Package Manager and CocoaPods.

Swift Package Manager

Add https://github.com/truvhq/ios-sdk as a package dependency.

CocoaPods

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.

TruvBridgeView

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

With the 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

The 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.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics