Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Sources/PopupView/WindowManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class UIPassthroughWindow: UIWindow {

// iOS26 Passthrough Find Issue
if #available(iOS 26, *), vc.view.point(inside: pointInRoot, with: event) {
return vc.view
return isTouchInsideSubviewForiOS26(point: pointInRoot, view: vc.view)
}
if let _ = isTouchInsideSubview(point: pointInRoot, view: vc.view) {
// pass tap to this UIPassthroughVC
Expand All @@ -77,6 +77,14 @@ class UIPassthroughWindow: UIWindow {
}
return nil
}

@available(iOS 26.0, *)
private func isTouchInsideSubviewForiOS26(point: CGPoint, view: UIView) -> UIView? {
guard view.layer.hitTest(point)?.name == nil else {
return nil
}
return view
}
}

class UITextFieldCheckingVC<Content: View>: UIHostingController<Content> {
Expand Down