Kindly SDK for iOS
Integrate Kindly Chat in your iOS app.
- This SDK makes it easy to add chat to your app.
- Provides a chat UI that can be branded.
- Made for iPhone and iPad.
📦 Installation
Requirements
- iOS deployment target: 13.0+
How to install
Swift Package Manager
Add the GitHub Repo URL to your Xcode project. In the Xcode menu bar, select “File” -> “Add Packages…”
https://github.com/kindly-ai/sdk-chat-ios
Cocoapods
You can also use CocoaPods to install the Kindly SDK. Add the following line to your Podfile
:
pod 'Kindly', '~> 2.1'
Usage
After installing the SDK, you can now use it in your iOS application.
Initialize the SDK in your AppDelegate’s didFinishLaunchingWithOptions method. Use the provided bot key to start the SDK.
import Kindly
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
KindlySDK.start(botKey: "BOT_KEY")
return true
}
Display the chat interface in your desired view controller. You can call the displayChat method from the Kindly SDK and pass the desired language code.
KindlySDK.displayChat(languageCode: "en")
📋 Getting started
Documentation
- Here you’ll find the documentation and getting started guide.
Credits
Kindly SDK for iOS implements the following dependencies: