8000 update func name follow the naming pattern · GetStream/stream-chat-swiftui@03a8a7d · GitHub
[go: up one dir, main page]

Skip to content

Commit 03a8a7d

Browse files
committed
update func name follow the naming pattern
1 parent d377b30 commit 03a8a7d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Sources/StreamChatSwiftUI/ChatChannel/ChatChannelView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ public struct ChatChannelView<Factory: ViewFactory>: View, KeyboardReadable {
9494
Divider()
9595
.navigationBarBackButtonHidden(viewModel.reactionsShown)
9696
.if(viewModel.reactionsShown, transform: { view in
97-
view.modifier(factory.changeBarsVisibility(shouldShow: false))
97+
view.modifier(factory.makeChannelBarsVisibilityViewModifier(shouldShow: false))
9898
})
9999
.if(!viewModel.reactionsShown, transform: { view in
100-
view.modifier(factory.changeBarsVisibility(shouldShow: true))
100+
view.modifier(factory.makeChannelBarsVisibilityViewModifier(shouldShow: true))
101101
})
102102
.if(viewModel.channelHeaderType == .regular) { view in
103103
view.modifier(factory.makeChannelHeaderViewModifier(for: channel))

Sources/StreamChatSwiftUI/DefaultViewFactory.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ extension ViewFactory {
301301
DefaultChannelHeaderModifier(factory: self, channel: channel)
302302
}
303303

304-
public func changeBarsVisibility(shouldShow: Bool) -> some ViewModifier {
304+
public func makeChannelBarsVisibilityViewModifier(shouldShow: Bool) -> some ViewModifier {
305305
ChangeChannelBarsVisibilityModifier(shouldShow: shouldShow)
306306
}
307307

Sources/StreamChatSwiftUI/ViewFactory.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public protocol ViewFactory: AnyObject {
286286
/// Creates a view modifier that changes the visibility of bars.
287287
/// - Parameter shouldShow: A Boolean value indicating whether the bars should be shown.
288288
/// - Returns: A view modifier that changes the visibility of bars.
289-
func changeBarsVisibility(shouldShow: Bool) -> ChangeBarsVisibilityModifier
289+
func makeChannelBarsVisibilityViewModifier(shouldShow: Bool) -> ChangeBarsVisibilityModifier
290290

291291
associatedtype ChannelLoadingViewType: View
292292
/// Creates a loading view for the channel.

0 commit comments

Comments
 (0)
0