Skip to content

Commit e954494

Browse files
committed
Forgotten public inits
1 parent 937da68 commit e954494

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Sources/StreamChatSwiftUI/ChatThreadList/ChatThreadListErrorBannerView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ public struct ChatThreadListErrorBannerView: View {
1111

1212
let action: () -> Void
1313

14+
public init(action: @escaping () -> Void) {
15+
self.action = action
16+
}
17+
1418
public var body: some View {
1519
ActionBannerView(
1620
text: L10n.Thread.Error.message,

Sources/StreamChatSwiftUI/ChatThreadList/ChatThreadListFooterView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import SwiftUI
88
public struct ChatThreadListFooterView: View {
99
@ObservedObject private var viewModel: ChatThreadListViewModel
1010

11-
init(
11+
public init(
1212
viewModel: ChatThreadListViewModel
1313
) {
1414
self.viewModel = viewModel

0 commit comments

Comments
 (0)