diff --git a/CHANGELOG.md b/CHANGELOG.md index 34c776cfe..f2cd306fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - 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 Channel List stuck in Empty View State in rare conditions [#639](https://github.com/GetStream/stream-chat-swiftui/pull/639) +- 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_ 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