-1

I created a SwiftUI view and embedded it into UIKit using a UIHostingController, placing it as a floating view inside a UIKit view controller.

However, when I tap on the SwiftUI view, the touch event is being captured by the underlying UIKit view instead. Has anyone faced this issue?

asked 15 hours ago

Yuvan's user avatar

1

2

Please show a minimal reproducible example.

2026-03-20 17:06:12 +00:00

Commented 14 hours ago

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.