In my case there may be chat display and i get response phrase to phrase on socket and wish to replace phrase to phrase response on single chat cell on receiving aspect, however its working high quality with engalish and a few langugage,however its caught with Arabic and a few sort of langugages, i’m confuse why its occurring, I attempt to replace desk cell in major thread with dispatch que however nonetheless getiing similar concern.
let updatedChat = strive? ChatSQLiteSqlQuery.shareInstance.getchatAccordingToSessions(sessionUUID: sessionUUID)
if updatedChat.rely > 0 {
var indexPathsToUpdate: [IndexPath] = []
var row = 0
for (index, chat) in updatedChat.enumerated() {
if chat.messageId == messageId {
row = index
break
}
}
let indexPath = IndexPath(row: row, part: 0)
indexPathsToUpdate.append(indexPath)
UIView.performWithoutAnimation {
self.tablView_Chat.performBatchUpdates {
self.arrchat = updatedChat
self.tablView_Chat.beginUpdates()
self.tablView_Chat.reloadRows(at: indexPathsToUpdate, with: .none)
self.tablView_Chat.endUpdates()
} completion: { _ in
self.tablView_Chat.scrollToBottom(isAnimated: false)
}
}
}
i attempted format replace and in addition decode unicode in particular language and attempt to replace it, and in addition attempt to desk view willDisplay delegate to enhance efficiency however not getting successes outcome
self.tablView_Chat.layoutIfNeeded()
self.tablView_Chat.setNeedsLayout()
self.tablView_Chat.layoutSubviews()