Closed jonahhugit closed 1 month ago
Hi @jonahhugit,
The problem with the code you shared is that the channelDestination
parameter resolves to the associated type of the default view factory.
You need to explicitly provide your own custom view factory in this case:
channelDestination: @escaping (ChannelSelectionInfo) -> ChatChannelView< CorgiStreamFactory>
Hope this helps. Best, Martin
Thank you @martinmitrevski - appreciate the help!
What did you do?
I am trying to override the channel list view to expose a custom avatar (for group chats, shows up to 4 avatars in a resized image -- is there any other way to do this? I know in UIKit there is already code natively in the SDK)
What did you expect to happen?
I overrode makeChannelListItem as documented, expecting it to override the Default View Factory
What happened instead?
I overrode makeChannelListItem as documented, but it is not being overriding Default View Factory for some reason. makeChannelListHeaderViewModifier, which I am also overriding in the View Factory is overriding fine.
GetStream Environment
GetStream Chat version: 4.61.0 GetStream Chat frameworks: StreamChat, StreamChatSwiftUI iOS version: 17.5 Swift version: 5.10 Xcode version: 15.4 Device: iPhone 15 Pro emulator, iPhone 14 Pro physical
Additional context
Our view factory: