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 noticed that snapshotting UISearchContainerViewController results in an empty image.
It seems like Apple does not follow any of it's own rules in this component, as it has neither child view controllers nor subviews in its view.
Similarly, the UISearchController it contains also does not seem to have a proper UIKit 'handle' on its searchResultsController, so even going down the hierarchy one step doesn't help.
I tried going with XCUITests and simply snapshotting the entire screen, but while that works it is dreadfully slow.
Does anyone have any creative ideas for how to handle this odd case? 🤔
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that snapshotting
UISearchContainerViewController
results in an empty image.It seems like Apple does not follow any of it's own rules in this component, as it has neither child view controllers nor subviews in its view.
Similarly, the
UISearchController
it contains also does not seem to have a proper UIKit 'handle' on itssearchResultsController
, so even going down the hierarchy one step doesn't help.I tried going with
XCUITest
s and simply snapshotting the entire screen, but while that works it is dreadfully slow.Does anyone have any creative ideas for how to handle this odd case? 🤔
Beta Was this translation helpful? Give feedback.
All reactions