We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a73bca5 commit a5b86eaCopy full SHA for a5b86ea
Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelListHeader.swift
@@ -16,6 +16,10 @@ public struct DefaultChatChannelListHeader: ToolbarContent {
16
17
public var title: String
18
19
+ public init(title: String) {
20
+ self.title = title
21
+ }
22
+
23
public var body: some ToolbarContent {
24
ToolbarItem(placement: .principal) {
25
Text(title)
@@ -28,6 +32,10 @@ public struct DefaultChatChannelListHeader: ToolbarContent {
28
32
public struct DefaultChannelListHeaderModifier: ChannelListHeaderViewModifier {
29
33
30
34
35
36
37
38
31
39
public func body(content: Content) -> some View {
40
content.toolbar {
41
DefaultChatChannelListHeader(title: title)
0 commit comments