CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.

CometChatBuilder 1.1.0

CometChatBuilder 1.1.0

Maintained by Dawinder Kaur.



  • By
  • dawinderkaur

CometChatBuilder

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.


✨ Features

  • 📱 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).

📦 Installation

CocoaPods

Add the following to your Podfile:

pod 'CometChatBuilder'

Then run:

pod install

Swift Package Manager (SPM)

  1. In Xcode, go to File > Add Packages...
  2. Enter the repository URL:
    https://github.com/your-org/CometChatBuilder.git
    
  3. Select the latest version and add it to your project.

🚀 Usage

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
    }
}

🛠 Requirements

  • iOS 13.0+
  • Swift 5.5+
  • Xcode 13+

📜 License

This project is licensed under the MIT License.


⚡ With CometChatBuilder, you can give users the power to instantly configure your app’s theme and settings just by scanning a QR code.