Skip to content

Commit 1c38314

Browse files
Added public init for UnreadIndicatorView
1 parent 1c38893 commit 1c38314

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelListItem.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ public struct UnreadIndicatorView: View {
172172

173173
var unreadCount: Int
174174

175+
public init(unreadCount: Int) {
176+
self.unreadCount = unreadCount
177+
}
178+
175179
public var body: some View {
176180
Text("\(unreadCount)")
177181
.lineLimit(1)

0 commit comments

Comments
 (0)