Skip to content
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,7 @@
"pages": [
"ui-kit/ios/core-features",
"ui-kit/ios/offline-support",
"ui-kit/ios/rtl-support",
Comment thread
ashfaqcometchat marked this conversation as resolved.
Resolved
Comment thread
ashfaqcometchat marked this conversation as resolved.
Resolved
"ui-kit/ios/extensions",
"ui-kit/ios/ai-features"
]
Expand Down
2 changes: 1 addition & 1 deletion ui-kit/ios/call-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ In Xcode, go to **File → Add Package Dependencies** and add both packages with

| Package URL | Version | Product |
| --- | --- | --- |
| `https://github.com/cometchat/cometchat-uikit-ios` | `5.3.0` | `CometChatUIKitSwift` |
| `https://github.com/cometchat/cometchat-uikit-ios` | `5.4.0` | `CometChatUIKitSwift` |
| `https://github.com/cometchat/calls-sdk-ios` | `5.0.4` | `CometChatCallsSDK` |

The UI Kit brings in `CometChatSDK` itself, and requires iOS 15.1+. CocoaPods stops at UI Kit 5.1.18, so use Swift Package Manager for current releases.
Expand Down
2 changes: 1 addition & 1 deletion ui-kit/ios/calling-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ https://github.com/cometchat/calls-sdk-ios

<Note>
- Your app target needs iOS 15.1 or later, the UI Kit's minimum deployment target.
- Keep the UI Kit on **Up to Next Major Version** from `5.3.0`, as set up in [Getting Started](/ui-kit/ios/getting-started).
- Keep the UI Kit on **Up to Next Major Version** from `5.4.0`, as set up in [Getting Started](/ui-kit/ios/getting-started).
</Note>

<Warning>
Expand Down
2 changes: 1 addition & 1 deletion ui-kit/ios/components-overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: "Understand CometChat iOS UI Kit component types, base components,
{
"platform": "iOS UI Kit",
"package": "CometChatUIKitSwift",
"version": "5.3.0",
"version": "5.4.0",
"componentTypes": {
"base": "Simple UI elements with no business logic",
"components": "UI elements with built-in business logic",
Expand Down
4 changes: 2 additions & 2 deletions ui-kit/ios/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: "Integrate CometChat iOS UI Kit with project setup, package install
| Field | Value |
| --- | --- |
| Package | `CometChatUIKitSwift` |
| Version | `5.3.0` (Swift Package Manager, Up to Next Major Version) |
| Version | `5.4.0` (Swift Package Manager, Up to Next Major Version) |
| Requirements | Xcode 16+, iOS 15.1+, Swift 5.3+ |
| Init | `CometChatUIKit.init(uiKitSettings:)` — must complete before `login()` |
| Login | `CometChatUIKit.login(uid:)` — must complete before rendering components |
Expand Down Expand Up @@ -102,7 +102,7 @@ https://github.com/cometchat/cometchat-uikit-ios
3. Select **Up to Next Major Version** and enter:

```
5.3.0
5.4.0
```

4. Add the **CometChatUIKitSwift** product to your app target.
Expand Down
3 changes: 2 additions & 1 deletion ui-kit/ios/llms-ios-v5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ the page for the intent, then read the API there.
5.1.18 and new releases ship through Swift Package Manager only. `Podfile`/`.xcworkspace` remain
valid *detection* signals for an existing project, but new integration uses SPM.
- **Add one package for chat:** `https://github.com/cometchat/cometchat-uikit-ios`, rule
**Up to Next Major Version** from `5.3.0`, product `CometChatUIKitSwift`.
**Up to Next Major Version** from `5.4.0`, product `CometChatUIKitSwift`.
- **The Chat SDK comes in transitively.** The UI Kit package declares `CometChatSDK`
(`chat-sdk-ios`, `from: "4.2.1"`) and `CometChatCardsSwift` itself, so do not add
`chat-sdk-ios` separately. An exact pin below 4.2.1 left over from an older integration makes
Expand Down Expand Up @@ -133,6 +133,7 @@ component-level corrections from the component pages on top.

## Features and extras
- [Offline Support](/ui-kit/ios/offline-support)
- [RTL Support](/ui-kit/ios/rtl-support)
- [Extensions](/ui-kit/ios/extensions)
- [Campaigns](/ui-kit/ios/campaigns)
- [Localize](/ui-kit/ios/localize)
Expand Down
10 changes: 7 additions & 3 deletions ui-kit/ios/localize.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: "Adapt CometChat UI Kit to different languages and customize date/t
| Localize Class | `CometChatLocalize` |
| Set Locale | `CometChatLocalize.set(locale: .french)` |
| Get Locale | `CometChatLocalize.getLocale()` |
| Supported Languages | 17 languages (en, fr, de, es, hi, ru, pt, zh, ja, ko, tr, ms, sv, lt, hu, nl) |
| Supported Languages | 18 languages (en, en-GB, ar, fr, de, es, hi, ru, pt, zh, zh-TW, ja, ko, tr, ms, sv, lt, hu, nl) |
| Override Strings | Define same key in app's `Localizable.strings` |
| DateTime Formatter | `CometChatUIKit.dateTimeFormatter` or component-level |
| DateTime Closures | `time`, `today`, `yesterday`, `lastweek`, `otherDay`, `minute`, `minutes`, `hour`, `hours` |
Expand All @@ -25,9 +25,13 @@ CometChat UI Kit provides language localization to adapt to the language of a sp

`CometChatLocalize` is a class that includes methods related to locale. Developers can use these methods to change the language of the UI Kit library.

<Note>
Setting a language does not change the layout direction. To lay out the UI Kit right to left, see [RTL Support](/ui-kit/ios/rtl-support).
</Note>

### Supported Languages

The UI Kit supports 17 languages for localization:
The UI Kit supports 18 languages for localization:

| Language | Code | Language | Code |
|----------|------|----------|------|
Expand All @@ -39,7 +43,7 @@ The UI Kit supports 17 languages for localization:
| Russian | `ru` | Lithuanian | `lt` |
| Portuguese | `pt` | Hungarian | `hu` |
| French | `fr` | Dutch | `nl` |
| German | `de` | | |
| German | `de` | Arabic | `ar` |

---

Expand Down
19 changes: 19 additions & 0 deletions ui-kit/ios/methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Replace **APP_ID**, **REGION**, and **AUTH_KEY** with your CometChat App ID, Reg
| **setAIFeatures** | `List<AIExtensionDataSource>` | Sets the AI Features that need to be added in UI Kit |
| **setExtensions** | `List<ExtensionsDataSource>` | Sets the list of extension that need to be added in UI Kit |
| **setOfflineConfig(_:)** | `OfflineConfig` | Turns on offline support by passing the Chat SDK's `OfflineConfig` to the SDK. Off unless the config has `enabled` set to `true`. Needs UI Kit 5.3.0 or later. See [Offline Support](/ui-kit/ios/offline-support) |
| **set(layoutDirection:)** | `UIUserInterfaceLayoutDirection` | Lays the UI Kit out right to left or left to right. Leave it out to follow the app. Needs UI Kit 5.4.0 or later. See [RTL Support](/ui-kit/ios/rtl-support) |

#### Example

Expand Down Expand Up @@ -110,6 +111,24 @@ CometChatUIKit.init(uiKitSettings: uiKitSettings) { result in

UI Kit 5.3.0, the first version with offline support, needs Chat SDK 4.2.1 or later. See [Offline Support](/ui-kit/ios/offline-support) for the requirements, what each component does offline, and the other `OfflineConfig` options.

#### Set the layout direction

From UI Kit 5.4.0, `set(layoutDirection:)` on `UIKitSettings` lays the UI Kit out right to left or left to right from start-up. To change the direction while the app is running, call `CometChatUIKit.set(layoutDirection:)`. It applies to components created after the call. Pass `nil` to go back to following the app.

<Tabs>
<Tab title="Swift">
```swift lines
// Lay out all UI Kit components right to left
CometChatUIKit.set(layoutDirection: .rightToLeft)

// Go back to following the app
CometChatUIKit.set(layoutDirection: nil)
```
</Tab>
</Tabs>

See [RTL Support](/ui-kit/ios/rtl-support) for per-component direction and what mirrors.

---

### Login using Auth Key
Expand Down
8 changes: 4 additions & 4 deletions ui-kit/ios/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ description: "Integrate chat functionality into iOS applications with prebuilt,
{
"platform": "iOS UI Kit",
"package": "CometChatUIKitSwift",
"version": "5.3.0",
"description": "Pre-built UI components for iOS chat applications using SwiftUI",
"version": "5.4.0",
"description": "Pre-built UI components for iOS chat applications using UIKit",
Comment thread
ashfaqcometchat marked this conversation as resolved.
Resolved
"metadata": {
"peerDependencies": {
"CometChatSDK": ">= 4.2.1 (resolved by SPM)"
Expand All @@ -31,7 +31,7 @@ description: "Integrate chat functionality into iOS applications with prebuilt,
| Property | Value |
|----------|-------|
| Package | CometChatUIKitSwift |
| Version | 5.3.0 |
| Version | 5.4.0 |
| Dependencies | CometChatSDK >= 4.2.1 (resolved by SPM) |
| Platforms | iOS 15.1+, iPadOS 15.1+ |
| Language | Swift 5.3+ |
Expand All @@ -46,7 +46,7 @@ The CometChat UI Kit for iOS provides a seamless solution to integrate chat func

### Key Features

- Effortless Integration: Ready-to-use SwiftUI components for rapid implementation
- Effortless Integration: Ready-to-use UIKit components for rapid implementation
- Highly Customizable: Adapt UI components to match your brand and user experience requirements
- Built on Core SDK: Leverages the powerful [CometChat iOS SDK](/sdk/ios/overview) for reliable performance
- Scalable & Reliable: Optimized for enterprise-grade applications
Expand Down
Loading