Strange UITextEffectsWindow eats away most of my events

I have an app that generally works fine, but I got field reports that some parts of the app becoming unresponsive at times.

After endless searching I was finally able to reproduce the situation, and found the following quite strange view hierarchy:

UIWindowScene - (Foreground Active)

UIWindow
UITextEffectsWindow
    UIInputWindowController
        UIInputSetContainerView
              UIInputSetHostView
              UIEditingOverlayViewController
                     UIEditingOverlayGestureView

Some internet search revealed that these are private classes probably linked to undo functionality introduced in iOS13.

What is happening here, and how to prevent that?

Thanks for any insight!

Klaus
Actually, the view hierarchy is always like this, it seems to be unrelated to my issue 😕

Did you ever figure this out? I think we are seeing the same thing in our Catalyst app.

It occurs to me too. And I found the way to reproduct it:

  • Open a sheet by SwiftUI: .sheet
  • Switch to other app
  • Back to your app, close the sheet

And then some buttons aren't responsive.

Strange UITextEffectsWindow eats away most of my events
 
 
Q