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

Fix Xamarin-Sidebar initialization #2314

Merged
merged 3 commits into from
Oct 30, 2017

Conversation

nmilcoff
Copy link
Contributor

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Bug fix / Code improvement.

⤵️ What is the current behavior?

Sidebar Menu is not always initialized and menu icons are not displayed.
On the other side, the Sidebar Presenter had a property of type IMvxSidebarViewController but the only way it could work was if it was actually a MvxSidebarViewController.

🆕 What is the new behavior (if this is a feature change)?

Above is fixed and the property type is changed to MvxSidebarViewController.

💥 Does this PR introduce a breaking change?

No.

🐛 Recommendations for testing

  1. Run TestProjects/XamarinSidebar sample on current develop. Appreciate that the menu icon is not displayed.
  2. Download this branch and run the same project. The menu icon is now successfully displayed.

📝 Links to relevant issues/docs

Closes #2188
Closes #2247
Could be related to #2268

🤔 Checklist before submitting

  • All projects build
  • Follows style guide lines (code style guide)
  • Relevant documentation was updated (docs style guide)
  • Nuspec files were updated (when applicable)
  • Rebased onto current develop

martijn00
martijn00 previously approved these changes Oct 30, 2017
@martijn00 martijn00 added this to the 5.4.0 milestone Oct 30, 2017
@@ -111,7 +111,7 @@ protected virtual bool ShowPanelAndResetToRoot(MvxSidebarPresentationAttribute a

protected virtual bool ShowPanel(MvxSidebarPresentationAttribute attribute, UIViewController viewController)
{
var navigationController = (SideBarViewController as MvxSidebarViewController).NavigationController;
var navigationController = (SideBarViewController).NavigationController;
Copy link
Member

Choose a reason for hiding this comment

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

Remove paranthesis

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch, thanks!

@martijn00 martijn00 merged commit d15a97e into MvvmCross:develop Oct 30, 2017
@Cheesebaron Cheesebaron added the p/ios iOS platform label Oct 31, 2017
@nmilcoff nmilcoff deleted the fix-sidebar-first-nav branch October 31, 2017 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p/ios iOS platform
3 participants