Skip to content

Commit 5d8f6aa

Browse files
Fix tapping on invisible areas on iOS 26 (#868)
1 parent c9295c8 commit 5d8f6aa

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
33

44
# Upcoming
55

6-
### 🔄 Changed
6+
### 🐞 Fixed
7+
- Fix tapping on invisible areas on iOS 26 [#868](https://github.com/GetStream/stream-chat-swiftui/pull/868)
78

89
# [4.80.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.80.0)
910
_June 17, 2025_

Sources/StreamChatSwiftUI/ChatChannel/Composer/PhotoAttachmentPickerView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ public struct PhotoAttachmentCell: View {
9696

9797
// Needed because of SwiftUI bug with tap area of Image.
9898
Rectangle()
99-
.opacity(0.000001)
99+
.fill(.clear)
100100
.frame(width: reader.size.width, height: reader.size.height)
101+
.contentShape(.rect)
101102
.clipped()
102103
.allowsHitTesting(true)
103104
.onTapGesture {

Sources/StreamChatSwiftUI/ChatChannel/MessageList/ImageAttachmentView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,9 @@ struct LazyLoadingImage: View {
361361
// NOTE: needed because of bug with SwiftUI.
362362
// The click area expands outside the image view (although not visible).
363363
Rectangle()
364-
.opacity(0.000001)
364+
.fill(.clear)
365365
.frame(width: width, height: height)
366+
.contentShape(.rect)
366367
.clipped()
367368
.allowsHitTesting(true)
368369
.highPriorityGesture(

0 commit comments

Comments
 (0)