Skip to content
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

Added shouldDismissPresentedViewController property to options #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

tspecht
Copy link

@tspecht tspecht commented Apr 1, 2015

I recently had the need to stack multiple modal navigation controller in my app. Therefore I added a shouldDismissPresentedViewController property to the options to enable this functionality in my app.
Maybe someone else finds that functionality useful :)

@@ -71,12 +71,14 @@ typedef void (^RouterOpenCallback)(NSDictionary *params);
@param defaultParams The default parameters which are passed when opening the URL
@param isRoot The boolean `shouldOpenAsRootViewController` property is set to
@param isModal The boolean that sets a modal presentation format
@param shouldDismissPresentedViewController The boolean inidicating wheter an already existing presentedViewController should be dismissed before presenting a new one
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some typos in this line

@clayallsopp
Copy link
Owner

I think this would be useful! if we keep backwards compatibility. I am wary of adding a bunch of options, but I think it's okay for now

can we add a test for this?

@tspecht
Copy link
Author

tspecht commented Apr 1, 2015

@clayallsopp thanks for taking a look so fast, I just fixed the typos, added the method back in for backwards compatibility and fixed the indentation. Please also see my other comment.

@clayallsopp
Copy link
Owner

awesome! can you add tests? the existing ones should point you in the right direction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants