-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add present and dismiss commands for UIViewController #150
Conversation
def presentViewController(viewController): | ||
vc = '(%s)' % (viewController) | ||
|
||
if fb.evaluateBooleanExpression('%s != nil && ((id)[(id)%s isKindOfClass:(Class)[UIViewController class]])' % (vc, vc)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The (id)
cast after the &&
should be (BOOL)
.
Updated! |
🚢 |
Thanks Xzibit |
Any thoughts on whether it's presently possible to push a view controller from a specific |
As in, to push it onto a specific UINavigationController? It's doable, but the question is do we want a command that takes two arguments because I can't see it working without something like this:
(where $nc is the navigation controller and $vc is the view controller)
|
Yes. The use case here is that I'm trying to present a specific View Controller for debugging, as close as possible to how it would organically be presented in the app. In this particular case, the VC I'm debugging is presented in a Chisel's If this is out-of-scope for the framework, perhaps the solution here is just dropping into the Swift REPL to accomplish this. |
How I tested: