Skip to content

Commit acca60c

Browse files
Made view factory param optional in ChatChannelListView init
1 parent 6e6f2a7 commit acca60c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelListView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public struct ChatChannelListView<Factory: ViewFactory>: View {
2121
private var handleTabBarVisibility: Bool
2222

2323
public init(
24-
viewFactory: Factory,
24+
viewFactory: Factory = DefaultViewFactory.shared,
2525
viewModel: ChatChannelListViewModel? = nil,
2626
channelListController: ChatChannelListController? = nil,
2727
title: String = "Stream Chat",

0 commit comments

Comments
 (0)