Skip to content

Commit 36703f4

Browse files
authored
Merge pull request #53 from lixm1988/main
update uikitVersion api
2 parents a7a87b6 + 9e4c3b4 commit 36703f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/EaseChatUIKit/Classes/Service/Client/ChatUIKitClient.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ public let cache_update_notification = "ChatUIKitContextUpdateCache"
5353
@objc(setupWithAppKey:option:)
5454
public func setup(appKey: String? = nil,option: ChatOptions? = nil) -> ChatError? {
5555
if let options = option {
56-
options.uikitVersion = ChatUIKit_VERSION
56+
options.uiKitVersion = ChatUIKit_VERSION
5757
return ChatClient.shared().initializeSDK(with: options)
5858
} else {
5959
if let key = appKey {
6060
let options = ChatOptions(appkey: key)
61-
options.uikitVersion = ChatUIKit_VERSION
61+
options.uiKitVersion = ChatUIKit_VERSION
6262
return ChatClient.shared().initializeSDK(with: options)
6363
}
6464
return ChatError(description: "App key can't be nil", code: .invalidAppkey)

0 commit comments

Comments
 (0)