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
Several improvements #209
Several improvements #209
Conversation
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.
Thanks for this! I made one code style suggestion and one API suggestion. Let me know what you think. Otherwise, this LGTM.
var animated: Bool { | ||
if let animated = parameters?["animated"] as? Bool { | ||
return animated | ||
} | ||
|
||
return true | ||
} |
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.
var animated: Bool { | |
if let animated = parameters?["animated"] as? Bool { | |
return animated | |
} | |
return true | |
} | |
var animated: Bool { parameters?["animated"] as? Bool ?? true } |
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.
I'd like to keep it as-is since it's consistent across all other functions in the file.
This PR contains three changes for my convenience, but I'm happy to break them up into 3 separate PRs if needed:
TurboNavigator.rootViewcontroller
allowed us to access the main nav controller. I've addedmodalRootViewController
so we can access that too.options
parameter. This is useful when you want to override the options given from the path config dynamically.Happy to hear any feedback.