Skip to content

Commit 56c1f22

Browse files
Fix a bug with photo attachment picker not displaying (#640)
1 parent 1ecdb67 commit 56c1f22

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
99
- Fix crash when opening message overlay in iPad with a TabBar [#627](https://github.com/GetStream/stream-chat-swiftui/pull/627)
1010
- Only show Leave Group option if the user has leave-channel permission [#633](https://github.com/GetStream/stream-chat-swiftui/pull/633)
1111
- Fix Channel List stuck in Empty View State in rare conditions [#639](https://github.com/GetStream/stream-chat-swiftui/pull/639)
12+
- Fix a bug with photo attachment picker indicator not displaying [#640](https://github.com/GetStream/stream-chat-swiftui/pull/640)
1213

1314
# [4.65.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.65.0)
1415
_October 18, 2024_

Sources/StreamChatSwiftUI/ChatChannel/Composer/PhotoAttachmentPickerView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public struct PhotoAttachmentCell: View {
5858
@State private var compressing = false
5959
@State private var loading = false
6060
@State var requestId: PHContentEditingInputRequestID?
61+
@State var idOverlay = UUID()
6162

6263
var asset: PHAsset
6364
var onImageTap: (AddedAsset) -> Void
@@ -113,6 +114,7 @@ public struct PhotoAttachmentCell: View {
113114
)
114115
)
115116
}
117+
idOverlay = UUID()
116118
}
117119
}
118120
}
@@ -150,6 +152,7 @@ public struct PhotoAttachmentCell: View {
150152
)
151153
}
152154
}
155+
.id(idOverlay)
153156
)
154157
.onAppear {
155158
self.loading = false

0 commit comments

Comments
 (0)