You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have determined there is a timing issue present when attempting to introspect a UIKit view controller.
Sometimes when UIKitIntrospectionViewController. updateUIViewController(_:context:) is called the view controller's parent is not set yet and its view is not in the view hierarchy yet (hasn't been added to the window). This means that there are times when the customization never gets applied because the selector failed to find the target.
UIKitIntrospectionView works around this issue by applying the customizations as part of a moveToWindowHandler set on the IntrospectionUIView.
I was able to fix this issue by updating UIKitIntrospectionViewController to also use its view's moveToWindowHandler when apply customizations. In addition, I updated both UIKitIntrospectionView and UIKitIntrospectionViewController to set their handlers up front in their respective makeUIView(Controller) methods rather than delaying it until updateUIView(Controller) is called.
I have determined there is a timing issue present when attempting to introspect a UIKit view controller.
Sometimes when
UIKitIntrospectionViewController. updateUIViewController(_:context:)
is called the view controller's parent is not set yet and its view is not in the view hierarchy yet (hasn't been added to the window). This means that there are times when the customization never gets applied because the selector failed to find the target.UIKitIntrospectionView
works around this issue by applying the customizations as part of amoveToWindowHandler
set on theIntrospectionUIView
.I was able to fix this issue by updating
UIKitIntrospectionViewController
to also use its view'smoveToWindowHandler
when apply customizations. In addition, I updated bothUIKitIntrospectionView
andUIKitIntrospectionViewController
to set their handlers up front in their respectivemakeUIView(Controller)
methods rather than delaying it untilupdateUIView(Controller)
is called.See pull request #165
The text was updated successfully, but these errors were encountered: