From 3f9ac518967f99ecae43d6328baf40e378325214 Mon Sep 17 00:00:00 2001 From: Stream Bot Date: Tue, 5 Nov 2024 13:21:49 +0100 Subject: [PATCH 1/2] Fix a bug with photo attachment picker not displaying --- .../ChatChannel/Composer/PhotoAttachmentPickerView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/StreamChatSwiftUI/ChatChannel/Composer/PhotoAttachmentPickerView.swift b/Sources/StreamChatSwiftUI/ChatChannel/Composer/PhotoAttachmentPickerView.swift index a95f50efd..aaab8572b 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/Composer/PhotoAttachmentPickerView.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/Composer/PhotoAttachmentPickerView.swift @@ -58,6 +58,7 @@ public struct PhotoAttachmentCell: View { @State private var compressing = false @State private var loading = false @State var requestId: PHContentEditingInputRequestID? + @State var idOverlay = UUID() var asset: PHAsset var onImageTap: (AddedAsset) -> Void @@ -113,6 +114,7 @@ public struct PhotoAttachmentCell: View { ) ) } + idOverlay = UUID() } } } @@ -150,6 +152,7 @@ public struct PhotoAttachmentCell: View { ) } } + .id(idOverlay) ) .onAppear { self.loading = false From e46ec890ec1cfe1aebe92778497c83658748a698 Mon Sep 17 00:00:00 2001 From: Stream Bot Date: Tue, 5 Nov 2024 13:24:31 +0100 Subject: [PATCH 2/2] Updated CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc07d6004..eba55b4c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### 🐞 Fixed - Fix crash when opening message overlay in iPad with a TabBar [#627](https://github.com/GetStream/stream-chat-swiftui/pull/627) - Only show Leave Group option if the user has leave-channel permission [#633](https://github.com/GetStream/stream-chat-swiftui/pull/633) +- Fix a bug with photo attachment picker indicator not displaying [#640](https://github.com/GetStream/stream-chat-swiftui/pull/640) # [4.65.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.65.0) _October 18, 2024_