Skip to content
Open
20 changes: 10 additions & 10 deletions ui-kit/ios/ai-assistant-chat-history.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"sdkListeners": [],
"compositionExample": {
"description": "AIAssistanceChatHistory shows previous AI conversations for a user or group",
"components": ["CometChatAIAssistanceChatHistory", "CometChatMessages"],
"components": ["CometChatAIAssistanceChatHistory", "CometChatMessageList"],
"flow": "User opens AI history → selects conversation → views full AI chat"
}
}
Expand All @@ -56,7 +56,7 @@

<Steps>
<Step title="Install CometChat UI Kit">
Add to your Podfile:

Check warning on line 59 in ui-kit/ios/ai-assistant-chat-history.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/ai-assistant-chat-history.mdx#L59

Did you really mean 'Podfile'?
```ruby
pod 'CometChatUIKitSwift', '5.1.9'
```
Expand All @@ -71,13 +71,13 @@
```swift lines
import CometChatUIKitSwift

let uikitSettings = UIKitSettings()

Check warning on line 74 in ui-kit/ios/ai-assistant-chat-history.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/ai-assistant-chat-history.mdx#L74

Did you really mean 'uikitSettings'?
.set(appID: "YOUR_APP_ID")
.set(authKey: "YOUR_AUTH_KEY")
.set(region: "YOUR_REGION")
.build()

CometChatUIKit.init(uiKitSettings: uikitSettings) { result in

Check warning on line 80 in ui-kit/ios/ai-assistant-chat-history.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/ai-assistant-chat-history.mdx#L80

Did you really mean 'uikitSettings'?
switch result {
case .success:
CometChatUIKit.login(uid: "USER_ID") { _ in }
Expand Down Expand Up @@ -108,7 +108,7 @@
let chatHistory = CometChatAIAssistanceChatHistory()
chatHistory.user = user // Required!

navigationController?.pushViewController(chatHistory, animated: true)

Check warning on line 111 in ui-kit/ios/ai-assistant-chat-history.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/ai-assistant-chat-history.mdx#L111

Did you really mean 'chatHistory'?
}
}
```
Expand Down Expand Up @@ -258,7 +258,7 @@
// MARK: - Actions
private func startNewAIChat() {
// Option 1: Open messages view for new AI chat
let messagesVC = CometChatMessages()
let messagesVC = MessagesVC() // your own VC — see /ui-kit/ios/ios-conversation
messagesVC.user = user
navigationController?.pushViewController(messagesVC, animated: true)

Expand All @@ -284,7 +284,7 @@
}

private func continueChat(from message: BaseMessage) {
let messagesVC = CometChatMessages()
let messagesVC = MessagesVC() // your own VC — see /ui-kit/ios/ios-conversation
messagesVC.user = user
navigationController?.pushViewController(messagesVC, animated: true)
}
Expand Down Expand Up @@ -336,7 +336,7 @@
import UIKit
import CometChatUIKitSwift

class CustomEmptyView: UIView {

Check warning on line 339 in ui-kit/ios/ai-assistant-chat-history.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/ai-assistant-chat-history.mdx#L339

Did you really mean 'UIView'?

private let imageView: UIImageView = {
let iv = UIImageView()
Expand Down Expand Up @@ -416,13 +416,13 @@
}

// Usage
let chatHistory = CometChatAIAssistanceChatHistory()

Check warning on line 419 in ui-kit/ios/ai-assistant-chat-history.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/ai-assistant-chat-history.mdx#L419

Did you really mean 'chatHistory'?
chatHistory.user = user

let emptyView = CustomEmptyView()

Check warning on line 422 in ui-kit/ios/ai-assistant-chat-history.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/ai-assistant-chat-history.mdx#L422

Did you really mean 'emptyView'?
emptyView.startChatButton.addTarget(self, action: #selector(startNewChat), for: .touchUpInside)

chatHistory.set(emptyView: emptyView)

Check warning on line 425 in ui-kit/ios/ai-assistant-chat-history.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/ai-assistant-chat-history.mdx#L425

Did you really mean 'emptyView'?
```
</Tab>
</Tabs>
Expand Down Expand Up @@ -538,7 +538,7 @@
import CometChatSDK
import CometChatUIKitSwift

let chatHistory = CometChatAIAssistanceChatHistory()

Check warning on line 541 in ui-kit/ios/ai-assistant-chat-history.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/ai-assistant-chat-history.mdx#L541

Did you really mean 'chatHistory'?
chatHistory.user = user

// Create custom message request builder
Expand Down Expand Up @@ -589,7 +589,7 @@

private func setupTabs() {
// Chats Tab
let chatsVC = CometChatConversationsWithMessages()
let chatsVC = ChatListVC() // your own list + chat screen — see /ui-kit/ios/ios-tab-based-chat
let chatsNav = UINavigationController(rootViewController: chatsVC)
chatsNav.tabBarItem = UITabBarItem(
title: "Chats",
Expand All @@ -611,7 +611,7 @@
)

// Users Tab
let usersVC = CometChatUsersWithMessages()
let usersVC = ChatListVC() // your own list + chat screen — see /ui-kit/ios/ios-tab-based-chat
let usersNav = UINavigationController(rootViewController: usersVC)
usersNav.tabBarItem = UITabBarItem(
title: "Users",
Expand All @@ -623,7 +623,7 @@
}

private func startNewAIChat() {
let messagesVC = CometChatMessages()
let messagesVC = MessagesVC() // your own VC — see /ui-kit/ios/ios-conversation
messagesVC.user = currentUser

if let nav = selectedViewController as? UINavigationController {
Expand Down Expand Up @@ -683,7 +683,7 @@
chatHistory.user = user

chatHistory.onNewChatButtonClicked = { [weak self] selectedUser in
let messagesVC = CometChatMessages()
let messagesVC = MessagesVC() // your own VC — see /ui-kit/ios/ios-conversation
messagesVC.user = selectedUser
self?.navigationController?.pushViewController(messagesVC, animated: true)
}
Expand Down Expand Up @@ -762,7 +762,7 @@
chatHistory.user = currentUser

chatHistory.onNewChatButtonClicked = { [weak self] user in
let messagesVC = CometChatMessages()
let messagesVC = MessagesVC() // your own VC — see /ui-kit/ios/ios-conversation
messagesVC.user = user
self?.navigationController?.pushViewController(messagesVC, animated: true)
}
Expand All @@ -785,7 +785,7 @@

chatHistory.onMessageClicked = { [weak self] message in
// Open the messages view to continue the conversation
let messagesVC = CometChatMessages()
let messagesVC = MessagesVC() // your own VC — see /ui-kit/ios/ios-conversation
messagesVC.user = self?.user
self?.navigationController?.pushViewController(messagesVC, animated: true)
}
Expand Down Expand Up @@ -846,7 +846,7 @@
aiHistory.user = currentUser

aiHistory.onNewChatButtonClicked = { [weak self] user in
let messagesVC = CometChatMessages()
let messagesVC = MessagesVC() // your own VC — see /ui-kit/ios/ios-conversation
messagesVC.user = user
if let nav = self?.selectedViewController as? UINavigationController {
nav.pushViewController(messagesVC, animated: true)
Expand Down
18 changes: 9 additions & 9 deletions ui-kit/ios/ai-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"category": "ai",
"features": [
{"name": "aiAgentChat", "description": "Chat with AI-powered assistants", "component": "CometChatMessages", "enabledByDefault": false},
{"name": "aiAgentChat", "description": "Chat with AI-powered assistants", "component": "CometChatMessageList", "enabledByDefault": false},
{"name": "chatHistory", "description": "Browse and resume previous AI sessions", "component": "CometChatAIAssistanceChatHistory", "enabledByDefault": false},
{"name": "streamingResponses", "description": "Real-time AI message streaming", "component": "CometChatMessageList", "enabledByDefault": false},
{"name": "suggestedMessages", "description": "AI-powered conversation starters and smart replies", "component": "CometChatMessageComposer", "enabledByDefault": false}
Expand All @@ -18,7 +18,7 @@
"location": "CometChat Dashboard → AI",
"features": ["Conversation Starter", "Smart Replies", "Conversation Summary"]
},
"relatedComponents": ["CometChatMessages", "CometChatAIAssistanceChatHistory", "CometChatMessageList", "CometChatMessageComposer"]
"relatedComponents": ["CometChatMessageList", "CometChatAIAssistanceChatHistory", "CometChatMessageList", "CometChatMessageComposer"]
}
```
</Accordion>
Expand Down Expand Up @@ -80,7 +80,7 @@

### Implementation

Conversation starters appear automatically in `CometChatMessages`:
Conversation starters appear automatically in `CometChatMessageList`:

<Tabs>
<Tab title="Swift">
Expand All @@ -94,7 +94,7 @@
func openChatWithUser(uid: String) {
CometChat.getUser(UID: uid) { [weak self] user in
DispatchQueue.main.async {
let messagesVC = CometChatMessages()
let messagesVC = MessagesVC() // your own VC — see /ui-kit/ios/ios-conversation
messagesVC.user = user

// Conversation starters appear automatically
Expand All @@ -102,7 +102,7 @@

self?.navigationController?.pushViewController(messagesVC, animated: true)
}
} onError: { error in

Check warning on line 105 in ui-kit/ios/ai-features.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/ai-features.mdx#L105

Did you really mean 'onError'?
print("Error: \(error?.errorDescription ?? "")")
}
}
Expand Down Expand Up @@ -142,7 +142,7 @@
class ChatViewController: UIViewController {

func openChat(with user: CometChat.User) {
let messagesVC = CometChatMessages()
let messagesVC = MessagesVC() // your own VC — see /ui-kit/ios/ios-conversation
messagesVC.user = user

// Smart replies appear automatically in the composer
Expand Down Expand Up @@ -186,7 +186,7 @@
class ChatViewController: UIViewController {

func openChat(with user: CometChat.User) {
let messagesVC = CometChatMessages()
let messagesVC = MessagesVC() // your own VC — see /ui-kit/ios/ios-conversation
messagesVC.user = user

// Conversation summary option appears in composer action sheet
Expand Down Expand Up @@ -400,7 +400,7 @@

private func setupTabs() {
// Chats - AI features (starters, smart replies, summary) work automatically
let chatsVC = CometChatConversationsWithMessages()
let chatsVC = ChatListVC() // your own list + chat screen — see /ui-kit/ios/ios-tab-based-chat
let chatsNav = UINavigationController(rootViewController: chatsVC)
chatsNav.tabBarItem = UITabBarItem(
title: "Chats",
Expand All @@ -418,7 +418,7 @@
)

// Users
let usersVC = CometChatUsersWithMessages()
let usersVC = ChatListVC() // your own list + chat screen — see /ui-kit/ios/ios-tab-based-chat
let usersNav = UINavigationController(rootViewController: usersVC)
usersNav.tabBarItem = UITabBarItem(
title: "Users",
Expand Down Expand Up @@ -491,7 +491,7 @@

chatHistory.onNewChatButtonClicked = { [weak self] in
// Start new AI chat
let messagesVC = CometChatMessages()
let messagesVC = MessagesVC() // your own VC — see /ui-kit/ios/ios-conversation
messagesVC.user = user
self?.navigationController?.pushViewController(messagesVC, animated: true)
}
Expand Down
10 changes: 5 additions & 5 deletions ui-kit/ios/call-buttons.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<Tab title="Swift">
```swift lines
let cometChatCallButton = CometChatCallButtons(width: 24, height: 24)
.set(onVoiceCallClick: { user, group in
.onVoiceCallClick = { user, group in
//Perform Your Action
})
```
Expand All @@ -109,7 +109,7 @@
<Tab title="Swift">
```swift lines
let cometChatCallButton = CometChatCallButtons(width: 24, height: 24)
.set(onVideoCallClick: { user, group in
.onVideoCallClick = { user, group in
//Perform Your Action

})
Expand Down Expand Up @@ -259,7 +259,7 @@
callButtonStyle.videoCallButtonBackground = UIColor(hex: "#EDEAFA")
callButtonStyle.videoCallIconTint = UIColor(hex: "#6852D6")

let callButton = CometChatCallButtons(width: 10, height: 10)

Check warning on line 262 in ui-kit/ios/call-buttons.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/call-buttons.mdx#L262

Did you really mean 'callButton'?
callButton.style = callButtonStyle
```

Expand Down Expand Up @@ -308,7 +308,7 @@
| set(group:Group) | Sets the Group object for CometChatCallButtons. | `.set(group:Group)` |
| set(outgoingCallConfiguration:) | Sets the configuration for outgoing calls. | `setOutgoingCallConfiguration(config)` |
| set(customSoundForCalls:) | Sets a custom sound for incoming and outgoing calls. | `set(customSoundForCalls: URL)` |
| set(callSettingBuilder:) | Function to build call settings based on call type and participants. | `.set(callSettingBuilder { callType, participants in ... })` |
| set(callSettingsBuilder:) | Function to build call settings based on call type and participants. | `.set(callSettingBuilder { callType, participants in ... })` |

### Advanced

Expand Down Expand Up @@ -345,7 +345,7 @@

**Example**

Let's say you want to change the style of the Outgoing Call subcomponent and, in addition, you only want to disable soundForCalls.

Check warning on line 348 in ui-kit/ios/call-buttons.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/call-buttons.mdx#L348

Did you really mean 'subcomponent'?

You can modify the style using the `OutgoingCallStyle` property, disable sound for calls using `.disable(soundForCalls: bool)` property.

Expand Down Expand Up @@ -374,7 +374,7 @@

```swift lines
let callButtons = CometChatCallButtons(width: 24, height: 24)
callButtons.set(controller: UIViewController) // Passing the controller is required

Check warning on line 377 in ui-kit/ios/call-buttons.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/call-buttons.mdx#L377

Did you really mean 'UIView'?
```

</Note>
Expand Down Expand Up @@ -476,7 +476,7 @@
```swift lines
class CustomMessageHeader: UIView {

private var callButtons: CometChatCallButtons!

Check warning on line 479 in ui-kit/ios/call-buttons.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/call-buttons.mdx#L479

Did you really mean 'callButtons'?

func configure(with user: User) {
callButtons = CometChatCallButtons(width: 24, height: 24)
Expand Down Expand Up @@ -516,7 +516,7 @@
```swift lines
let callButtons = CometChatCallButtons(width: 24, height: 24)
callButtons.set(user: user)
callButtons.set(onVoiceCallClick: { [weak self] user, group in
callButtons.onVoiceCallClick = { [weak self] user, group in
let alert = UIAlertController(
title: "Start Voice Call",
message: "Call \(user?.name ?? group?.name ?? "")?",
Expand Down Expand Up @@ -546,7 +546,7 @@
callButtons.set(controller: self)

// Custom call settings for group calls
callButtons.set(callSettingBuilder: { callType, participants in
callButtons.set(callSettingsBuilder: { callType, participants in
return CallSettingsBuilder()
.setDefaultLayout(true)
.setShowRecordingButton(true)
Expand Down
20 changes: 10 additions & 10 deletions ui-kit/ios/call-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
</Step>
</Steps>

**That's it!** Call buttons now appear in `CometChatMessages` header automatically.
**That's it!** Call buttons appear in `CometChatMessageHeader` automatically.

---

Expand All @@ -119,7 +119,7 @@
import CometChatUIKitSwift
import CometChatSDK

class SceneDelegate: UIResponder, UIWindowSceneDelegate {

Check warning on line 122 in ui-kit/ios/call-features.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/call-features.mdx#L122

Did you really mean 'UIResponder'?

var window: UIWindow?

Expand Down Expand Up @@ -155,7 +155,7 @@
self?.setupMainInterface(windowScene: windowScene)
}

case .onError(let error):

Check warning on line 158 in ui-kit/ios/call-features.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/call-features.mdx#L158

Did you really mean 'onError'?
print("❌ Login failed: \(error.description)")

@unknown default:
Expand Down Expand Up @@ -190,7 +190,7 @@

private func setupTabs() {
// Chats Tab - with calling enabled
let chatsVC = CometChatConversationsWithMessages()
let chatsVC = ChatListVC() // your own list + chat screen — see /ui-kit/ios/ios-tab-based-chat
let chatsNav = UINavigationController(rootViewController: chatsVC)
chatsNav.tabBarItem = UITabBarItem(
title: "Chats",
Expand All @@ -211,7 +211,7 @@
)

// Users Tab
let usersVC = CometChatUsersWithMessages()
let usersVC = ChatListVC() // your own list + chat screen — see /ui-kit/ios/ios-tab-based-chat
let usersNav = UINavigationController(rootViewController: usersVC)
usersNav.tabBarItem = UITabBarItem(
title: "Users",
Expand All @@ -220,7 +220,7 @@
)

// Groups Tab
let groupsVC = CometChatGroupsWithMessages()
let groupsVC = ChatListVC() // your own list + chat screen — see /ui-kit/ios/ios-tab-based-chat
let groupsNav = UINavigationController(rootViewController: groupsVC)
groupsNav.tabBarItem = UITabBarItem(
title: "Groups",
Expand Down Expand Up @@ -253,7 +253,7 @@
// Fetch user and open chat
CometChat.getUser(UID: uid) { [weak self] user in
DispatchQueue.main.async {
let messagesVC = CometChatMessages()
let messagesVC = MessagesVC() // your own VC — see /ui-kit/ios/ios-conversation
messagesVC.user = user

if let nav = self?.selectedViewController as? UINavigationController {
Expand Down Expand Up @@ -484,11 +484,11 @@
callButtons.user = user

// Customize actions
callButtons.set(onVoiceCallClick: { user, group in
callButtons.onVoiceCallClick = { user, group in
print("Voice call to: \(user?.name ?? group?.name ?? "")")
})

callButtons.set(onVideoCallClick: { user, group in
callButtons.onVideoCallClick = { user, group in
print("Video call to: \(user?.name ?? group?.name ?? "")")
})

Expand Down Expand Up @@ -581,8 +581,8 @@
callButtons.user = user // or callButtons.group = group

// Callbacks
callButtons.set(onVoiceCallClick: { user, group in })
callButtons.set(onVideoCallClick: { user, group in })
callButtons.onVoiceCallClick = { user, group in })
callButtons.onVideoCallClick = { user, group in })
callButtons.set(onError: { error in })
```

Expand All @@ -595,7 +595,7 @@
incomingCall.set(call: call)

incomingCall.set(onAcceptClick: { call in })
incomingCall.set(onDeclineClick: { call in })
incomingCall.set(onCancelClick: { call in })
```

### CometChatOutgoingCall
Expand Down
2 changes: 1 addition & 1 deletion ui-kit/ios/component-styling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,24 @@
import CometChatUIKitSwift

// Create custom styles
let avatarStyle = AvatarStyle()

Check warning on line 82 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L82

Did you really mean 'avatarStyle'?
avatarStyle.backgroundColor = UIColor(hex: "#FBAA75")
avatarStyle.cornerRadius = CometChatCornerStyle(cornerRadius: 8)

let badgeStyle = BadgeStyle()

Check warning on line 86 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L86

Did you really mean 'badgeStyle'?
badgeStyle.backgroundColor = UIColor(hex: "#F76808")
badgeStyle.textColor = .white
badgeStyle.textFont = UIFont.systemFont(ofSize: 12, weight: .bold)

let receiptStyle = ReceiptStyle()

Check warning on line 91 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L91

Did you really mean 'receiptStyle'?
receiptStyle.readIconTint = UIColor(hex: "#6200EE")
receiptStyle.deliveredIconTint = UIColor(hex: "#9E9E9E")

// Apply to conversations
let conversations = CometChatConversations()
conversations.avatarStyle = avatarStyle

Check warning on line 97 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L97

Did you really mean 'avatarStyle'?
conversations.badgeStyle = badgeStyle

Check warning on line 98 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L98

Did you really mean 'badgeStyle'?
conversations.receiptStyle = receiptStyle

Check warning on line 99 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L99

Did you really mean 'receiptStyle'?

// Style the list
conversations.style.titleColor = UIColor(hex: "#212121")
Expand Down Expand Up @@ -166,13 +166,13 @@
import CometChatUIKitSwift

// Avatar style for group icons
let avatarStyle = AvatarStyle()

Check warning on line 169 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L169

Did you really mean 'avatarStyle'?
avatarStyle.backgroundColor = UIColor(hex: "#FBAA75")
avatarStyle.cornerRadius = CometChatCornerStyle(cornerRadius: 8)

// Apply styles
let groups = CometChatGroups()
groups.avatarStyle = avatarStyle

Check warning on line 175 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L175

Did you really mean 'avatarStyle'?

// List styling
groups.style.titleColor = UIColor(hex: "#F76808")
Expand Down Expand Up @@ -303,7 +303,7 @@
import CometChatUIKitSwift

// Avatar style
let avatarStyle = AvatarStyle()

Check warning on line 306 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L306

Did you really mean 'avatarStyle'?
avatarStyle.backgroundColor = UIColor(hex: "#FBAA75")
avatarStyle.cornerRadius = CometChatCornerStyle(cornerRadius: 8)

Expand All @@ -319,7 +319,7 @@
CometChatCallLogs.style.outgoingCallIconTint = .systemGreen
CometChatCallLogs.style.missedCallTitleColor = .systemRed

CometChatCallLogs.avatarStyle = avatarStyle

Check warning on line 322 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L322

Did you really mean 'avatarStyle'?
```
</Tab>
</Tabs>
Expand Down Expand Up @@ -369,7 +369,7 @@
import CometChatUIKitSwift

// Date separator style
let dateStyle = CometChatDateStyle()
let dateStyle = DateStyle()

Check warning on line 372 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L372

Did you really mean 'dateStyle'?
dateStyle.textColor = UIColor(hex: "#8E8E93")
dateStyle.textFont = UIFont.systemFont(ofSize: 12)

Expand All @@ -381,7 +381,7 @@
CometChatAIAssistantChatHistory.style.newChatIconColor = UIColor(hex: "#F76808")
CometChatAIAssistantChatHistory.style.itemTextColor = UIColor(hex: "#141414")
CometChatAIAssistantChatHistory.style.itemTextFont = UIFont.systemFont(ofSize: 14)
CometChatAIAssistantChatHistory.style.dateSeparatorStyle = dateStyle

Check warning on line 384 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L384

Did you really mean 'dateStyle'?
```
</Tab>
</Tabs>
Expand Down Expand Up @@ -413,7 +413,7 @@
<Tabs>
<Tab title="Swift">
```swift lines
let badgeStyle = BadgeStyle()

Check warning on line 416 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L416

Did you really mean 'badgeStyle'?
badgeStyle.backgroundColor = UIColor(hex: "#F44336")
badgeStyle.textColor = .white
badgeStyle.textFont = UIFont.systemFont(ofSize: 12, weight: .bold)
Expand All @@ -430,7 +430,7 @@
<Tabs>
<Tab title="Swift">
```swift lines
let statusStyle = StatusIndicatorStyle()

Check warning on line 433 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L433

Did you really mean 'statusStyle'?
statusStyle.backgroundColor = .systemGreen // Online color
statusStyle.borderColor = .white
statusStyle.borderWidth = 2
Expand All @@ -446,7 +446,7 @@
<Tabs>
<Tab title="Swift">
```swift lines
let receiptStyle = ReceiptStyle()

Check warning on line 449 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L449

Did you really mean 'receiptStyle'?
receiptStyle.sentIconTint = UIColor(hex: "#9E9E9E")
receiptStyle.deliveredIconTint = UIColor(hex: "#9E9E9E")
receiptStyle.readIconTint = UIColor(hex: "#6200EE")
Expand Down Expand Up @@ -536,7 +536,7 @@

// Apply in AppDelegate
@main
class AppDelegate: UIResponder, UIApplicationDelegate {

Check warning on line 539 in ui-kit/ios/component-styling.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/ios/component-styling.mdx#L539

Did you really mean 'UIResponder'?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
StyleManager.applyGlobalStyles()
return true
Expand Down
Loading