Skip to content

Commit 91e4619

Browse files
authored
Make CreatePollView public (#685)
1 parent 2350e93 commit 91e4619

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
77
- Fix message thread reply footnote view not shown if parent message not in cache [#681](https://github.com/GetStream/stream-chat-swiftui/pull/681)
88
### ⚡ Performance
99
- Improve message search performance [#680](https://github.com/GetStream/stream-chat-swiftui/pull/680)
10+
### ✅ Added
11+
- Make `CreatePollView` public [#685](https://github.com/GetStream/stream-chat-swiftui/pull/685)
1012

1113
# [4.68.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.68.0)
1214
_December 03, 2024_

Sources/StreamChatSwiftUI/ChatChannel/Polls/CreatePollView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct ComposerPollView: View {
3434
}
3535
}
3636

37-
struct CreatePollView: View {
37+
public struct CreatePollView: View {
3838

3939
@Injected(\.colors) var colors
4040
@Injected(\.fonts) var fonts
@@ -47,7 +47,7 @@ struct CreatePollView: View {
4747

4848
@State private var listId = UUID()
4949

50-
init(chatController: ChatChannelController, messageController: ChatMessageController?) {
50+
public init(chatController: ChatChannelController, messageController: ChatMessageController?) {
5151
_viewModel = StateObject(
5252
wrappedValue: CreatePollViewModel(
5353
chatController: chatController,
@@ -56,7 +56,7 @@ struct CreatePollView: View {
5656
)
5757
}
5858

59-
var body: some View {
59+
public var body: some View {
6060
NavigationView {
6161
List {
6262
VStack(alignment: .leading, spacing: 8) {

0 commit comments

Comments
 (0)