Import the SDK
You can import Chat UI iOS using one of the following methods:
- Manual XCFramework integration
- CocoaPods
- Swift Package Manager (SPM)
Requirements
- Xcode 14.0 or later
- iOS 13.0 or later
- Objective-C or Swift project
- Swift 5.0 or later
- CocoaPods 1.10.0 or later
CocoaPods
To integrate Chat UI iOS using CocoaPods:
- Add the SDK to your
Podfile:
ruby
platform :ios, '13.0'
target 'YourApp' do
use_frameworks!
pod 'NexconnChatUI'
end
- Install the dependency:
shell
pod install
- After installation:
- Open the generated
.xcworkspacein Xcode - Import the SDK in your source files
- Open the generated
- Swift
- Objective-C
swift
import NexconnChatSDK
import NexconnChatUI
Objective C
#import <NexconnChatSDK/NexconnChatSDK.h>
#import <NexconnChatUI/NexconnChatUI.h>
Swift Package Manager
- Open your Xcode project.
- Go to File > Add Package Dependency.
- Paste the Chat UI SDK repository URL in the search field:
text
https://github.com/NexconnAI-Dev/nexconn-chatui-ios
- Select a version rule, check
NexconnChatSDKandNexconnChatUI, and click Add Package.
SDK components
| Swift Package | XCFramework | Description |
|---|---|---|
| NexconnChatUI | NexconnChatUI.xcframework | Chat UI SDK |
Integration guidance
- Use only one integration method per target - don't mix CocoaPods with SPM
- The Chat UI package resolves the required Chat SDK dependency automatically
- If user profiles or group information doesn't display correctly:
- Verify the SDK package is linked to your app target
- Confirm you've set the Chat UI data sources after connection