Determine correct child Swiz instance when wiring popup views instead of just falling back to root Swiz instance

Description

Our application defines a Swiz root instance and a Swiz child instance defined in a view which is created via PopUpManager. This popup view itself creates another popup via PopupManager.

When trying to inject beans which are defined in the Swiz child instance's bean provider into the second popup an error is thrown ("bean of type ... not found!") by the InjectProcessor because in that case Swiz falls back to the root Swiz instance:

SwizManager.as

I know that views created by PopUpManager can be tricky because they are added to the system manager and kind of mix up the display list hierarchy Swiz relies on, but anyway Swiz should not just fall back to the root Swiz instance but try to determine the closest Swiz child instance instead.

Environment

None

Status

Assignee

Ben Clinkinbeard

Reporter

DanielK

Labels

None

Fix versions

Affects versions

Priority

Minor
Configure