Skip to content

Commit 40a5c07

Browse files
Made view factory param optional in ChatChannelView init
1 parent acca60c commit 40a5c07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/StreamChatSwiftUI/ChatChannel/ChatChannelView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public struct ChatChannelView<Factory: ViewFactory>: View, KeyboardReadable {
2222
private var factory: Factory
2323

2424
public init(
25-
viewFactory: Factory,
25+
viewFactory: Factory = DefaultViewFactory.shared,
2626
viewModel: ChatChannelViewModel? = nil,
2727
channelController: ChatChannelController,
2828
messageController: ChatMessageController? = nil,

0 commit comments

Comments
 (0)