iOS Installation
Add the Lovina Chat SDK to your iOS project. The SDK requires iOS 15.0+, Swift 5.9+, and Xcode 15+.
Swift Package Manager (Recommended)
Using Xcode UI
- Open your project in Xcode.
- Go to File > Add Package Dependencies...
- Enter the repository URL:
https://your-repo-url.com/lovina-chat-sdk
- Set the package rule to Up to Next Major Version (starting from
1.0.0). - Select the
LovinaChatSDKlibrary and add it to your target.
Using Package.swift
If your project uses a Package.swift manifest, add the dependency:
dependencies: [
.package(url: "https://your-repo-url.com/lovina-chat-sdk", from: "1.0.0")
]
Then add the product to your target:
.target(
name: "YourApp",
dependencies: [
.product(name: "LovinaChatSDK", package: "lovina-chat-sdk")
]
)
Verify Installation
Import the SDK in any Swift file to confirm it is linked correctly:
import LovinaChatSDK
Build the project. If it compiles without errors, the SDK is installed.
Next Steps
Once installed, head to Usage to integrate the chat widget into your app.