Intercom appear animation looks like it’s presenting its View Controller on top of the current View Controller. But in reality it adds a new UIWindow
with a snapshot of the current window and presents its View Controller on top of it.
The issue is it doesn’t look for the top window, but uses something like UIApplication.shared.windows.first
for the snapshot — this breaks animation with multiple app windows.
In our case we have another “User is blocked please contact support” window on top (with higher windowLevel
), which is not used for this snapshot :(
Expected:
Intercom should use the top-level key window for the snapshot.
Intercom UIWindow’s windowLevel should be the same or higher than the current top window.
Best answer by Eden
View original