-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Notifications > Comment Details: show previous and next arrows in nav bar #17897
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.
This works for me, however I'm seeing a weird animation in the buttons when the view appears:
Screen.Recording.2022-02-07.at.11.03.48.mov
I'm also not sure if the button names and labels should be reversed. The up arrow will presumably show the notification above in the list, which would be the next notification. The down arrow would show the notification below, which chronologically would be the previous notification.
navigationItem.setRightBarButtonItems(barButtonItems, animated: false) | ||
} | ||
|
||
func navigationButtons() -> UIBarButtonItem { |
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.
Nitpick, but I'd either rename this to makeNavigationButtons
or move it to a lazy var named something like navigationButtonsStackView
.
I was thinking up arrow is previous in the list (hence
Eagle eyes. 😄 I removed a redundant call to Ready for another go please! |
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 @frosty! |
Ref: #17790
On the new Notification Comment details view, previous and next buttons are now displayed in the nav bar.
They're not hooked up yet, so:
To test:
notificationCommentDetails
.Regression Notes
Potential unintended areas of impact
N/A. Feature disabled.
What I did to test those areas of impact (or what existing automated tests I relied on)
N/A
What automated tests I added (or what prevented me from doing so)
N/A
PR submission checklist:
RELEASE-NOTES.txt
if necessary.