From 0da31d07f180d3676542efab6bf9a877e1206eed Mon Sep 17 00:00:00 2001 From: Toomas Vahter Date: Fri, 6 Dec 2024 14:40:53 +0200 Subject: [PATCH 1/2] Make CreatePollView public --- CHANGELOG.md | 2 ++ .../ChatChannel/Polls/CreatePollView.swift | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83acba62..dd5ab919 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### ⚡ Performance - Improve message search performance [#680](https://github.com/GetStream/stream-chat-swiftui/pull/680) +### 🔄 Changed +- Make `CreatePollView` public [#685](https://github.com/GetStream/stream-chat-swiftui/pull/685) # [4.68.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.68.0) _December 03, 2024_ diff --git a/Sources/StreamChatSwiftUI/ChatChannel/Polls/CreatePollView.swift b/Sources/StreamChatSwiftUI/ChatChannel/Polls/CreatePollView.swift index 8a90e1eb..e98d4805 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/Polls/CreatePollView.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/Polls/CreatePollView.swift @@ -34,7 +34,7 @@ struct ComposerPollView: View { } } -struct CreatePollView: View { +public struct CreatePollView: View { @Injected(\.colors) var colors @Injected(\.fonts) var fonts @@ -47,7 +47,7 @@ struct CreatePollView: View { @State private var listId = UUID() - init(chatController: ChatChannelController, messageController: ChatMessageController?) { + public init(chatController: ChatChannelController, messageController: ChatMessageController?) { _viewModel = StateObject( wrappedValue: CreatePollViewModel( chatController: chatController, @@ -56,7 +56,7 @@ struct CreatePollView: View { ) } - var body: some View { + public var body: some View { NavigationView { List { VStack(alignment: .leading, spacing: 8) { From 224a947470636897d97c04be3051070ba650b877 Mon Sep 17 00:00:00 2001 From: Toomas Vahter Date: Fri, 6 Dec 2024 16:24:35 +0200 Subject: [PATCH 2/2] CHANGELOG fix --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd5ab919..e027a3e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### ⚡ Performance - Improve message search performance [#680](https://github.com/GetStream/stream-chat-swiftui/pull/680) -### 🔄 Changed +### ✅ Added - Make `CreatePollView` public [#685](https://github.com/GetStream/stream-chat-swiftui/pull/685) # [4.68.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.68.0)