CometChatBuilder
is a lightweight library that allows you to quickly configure and customize your CometChat-powered app by scanning a QR code. The scanned QR code can include theme settings, UI configurations, and other app-level preferences that will automatically be applied to your app.
- 📱 QR Code Scanning: Easily scan QR codes to fetch app settings.
- 🎨 Theme Customization: Apply custom themes and UI styles instantly.
- ⚡ Seamless Integration: Works directly with your CometChat-powered app.
- 📦 Flexible Installation: Available via CocoaPods and Swift Package Manager (SPM).
Add the following to your Podfile
:
pod 'CometChatBuilder'
Then run:
pod install
- In Xcode, go to File > Add Packages...
- Enter the repository URL:
https://github.com/cometchat/chat-builder-ios.git
- Select the latest version and add it to your project.
Once installed, import the library into your ViewController
:
import UIKit
import CometChatBuilder
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Start scanning QR code for app settings
CometChatBuilder.startScanning(from: self) { style in
// Apply scanned theme and settings to your app
self.applyTheme(style)
}
}
private func applyTheme(_ style: Any) {
// Handle and apply the settings to your app here
}
}
- iOS 13.0+
- Swift 5.5+
- Xcode 13+
⚡ With CometChatBuilder
, you can give users the power to instantly configure your app’s theme and settings just by scanning a QR code.
For issues running the project or integrating with our SDK, consult our documentation or create a support ticket or seek real-time support via the CometChat Dashboard.