Swiftpack.co - dapi-co/Dapi-iOS as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by dapi-co.
dapi-co/Dapi-iOS 2.14.0
Prebuilt iOS SDK that reduces the time it takes to integrate with Dapi's API and gain access to your users financial data.
⭐️ 2
🕓 8 weeks ago
.package(url: "https://github.com/dapi-co/Dapi-iOS.git", from: "2.14.0")

Dapi iOS SDK

Swift Platforms CocoaPods Compatible Swift Package Manager


Dapi for iOS is a prebuilt SDK that reduces the time it takes to integrate with Dapi's API and gain access to your users financial data.

The SDK provides direct access to Dapi endpoints and offers optional UI to manage users' accounts and money transfer.


  • Mac with Apple silicon running macOS Big Sur 11 or later, or an Intel-based Mac running macOS Catalina 10.15.4 or later.
  • Xcode 13.0.0 or later
  • Swift 5 or later
  • iOS 13.0 or later

Steps To Add Dapi To Xcode Project

1. Get Your API Key AppKey

2. Set up Backend Server

  • Important! Using the SDK requires configuring a backend server. Read more about the flow and requirements: Server set-up for SDKs.. For development purposes, the server can be easily set up on your local machine.
  • Once the server runs successfully, make sure to add the host URL as App Server URL on the Dapi Dashboard

Now the SDK will automatically know where to send its requests!

3. Add Project Bundle ID to Dashboard

  1. Open your .xcodeproj file
  2. Copy the value of Bundle Identifier
  3. Open your app in the Dashboard.
  4. Select your Application → Go to App Settings
  5. Click on the Bundle IDs + icon, paste the Bundle ID value, and click Submit

Install Dapi SDK into the Xcode project

Cocoapods Installation

To integrate Dapi into your Xcode project using CocoaPods, add to your Podfile:

pod 'DapiBanking'

Then, run the following command:

$ pod install

Swift Package Manager

  1. Open project target.
  2. Select Swift packages
  3. Add a New package and paste https://github.com/dapi-co/Dapi-iOS
  4. Make sure to be on the latest version.

Manual Installation

  1. Download the latest Dapi SDK from release assets
  2. Extract or unzip the file
  3. Drag & drop DapiSDK.xcframework to your project’s “Frameworks, Libraries, and Embedded Content” section
  4. Under the “General” tab, make sure that the “Copy items if needed” checkbox is checked


  1. Import DapiSDK in your app delegate
import  DapiSDK
  1. Add the following to your app delegate's application:didFinishLaunchingWithOptions: method.
Dapi.shared.start(appKey:  \"#app_key#\",
				  environment: "#environment#", //.sandbox or .production
				  clientUserID: "#client_user_id#")
  • Replace app_key with your appKey from the first step.
  • environment value is sandbox or production. production provides access to real banks, sandbox can be used to simulate banks' behavior in a testing environment - learn more: Get Started with Sandbox.
  • ClientUserID is used to distinguish between different end-users. The value for clientUserID needs to be set by you. We recommend setting clientUserID to your actual user ID that you use to distinguish between users.
  1. Run your application and check the console, you should be able to see the following:

Congratulations! Now you can use Dapi in your iOS project!


Check out our API Reference for more detailed information about our SDK.


Stars: 2
Last commit: 8 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Dapi-iOS SDK 2.14.0
8 weeks ago


Fixed delink callback called twice.

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