-
Notifications
You must be signed in to change notification settings - Fork 310
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
Public StepsListViewController #1633
Conversation
controller.view.topAnchor.constraint(equalTo: instructionsBannerView.bottomAnchor).isActive = true | ||
controller.view.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true | ||
controller.view.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true | ||
controller.view.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = 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'm not a fan of how much boilerplate is necessary to make the slide action happen. @frederoni is there anything we can do to encapsulate this better?
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.
You could make UIView.pinInSuperview()
public and replace these 4 lines w/
controller.view.pinInSuperview()
. But pinInSuperview doesn't respect RTL so make sure you change left->leading
and right->trailing
in UIView.pinInSuperview()
’s implementation if you decide to go that way.
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.
LGTM. Rebase/merge master to make CI go ✅
This makes it possible to have the same steps list view functionality, that is found in the drop in UI, in a custom navigation UI. I think this is about the least intrusive change possible to have this work.
/cc @mapbox/navigation-ios