Skip to content

Commit 50bdd45

Browse files
Animating channel changes
1 parent 7b3bc11 commit 50bdd45

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelListViewModel.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,9 @@ open class ChatChannelListViewModel: ObservableObject, ChatChannelListController
369369

370370
@objc private func updateQueuedChannels() {
371371
if !queuedChannelsChanges.isEmpty {
372-
channels = queuedChannelsChanges
372+
withAnimation {
373+
channels = queuedChannelsChanges
374+
}
373375
}
374376
}
375377
}

0 commit comments

Comments
 (0)