Skip to content

Commit a517b48

Browse files
authored
MessageTextView: make init public (#125)
1 parent b0f486d commit a517b48

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageView.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ public struct MessageTextView<Factory: ViewFactory>: View {
115115
var message: ChatMessage
116116
var isFirst: Bool
117117
@Binding var scrolledId: String?
118+
119+
public init(factory: Factory, message: ChatMessage, isFirst: Bool, scrolledId: Binding<String?>) {
120+
self.factory = factory
121+
self.message = message
122+
self.isFirst = isFirst
123+
self._scrolledId = scrolledId
124+
}
118125

119126
public var body: some View {
120127
VStack(

0 commit comments

Comments
 (0)