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

Remove custom navigation bar #5121

Draft
wants to merge 178 commits into
base: main
Choose a base branch
from
Draft

Remove custom navigation bar #5121

wants to merge 178 commits into from

Conversation

tonisevener
Copy link
Collaborator

Phabricator: https://phabricator.wikimedia.org/T363606

Notes

This PR removes the ViewController, NavigationBar, NavigationBarHider, and WMFThemeableNavigationController superclasses and deals with the fallout. There other other smaller cleanup items, but those are the main ones.

I added a WMComponentNavigationController (subclass of UINavigationController) in WMFComponents for us to switch to. All legacy view controllers and newer WMFComponentViewControllers use this for navigating.

I also added a WMFNavigationBarConfiguring and default protocol implementation of configureNavigationBar(...) that all UIViewControllers can (optionally) call. I also tried to comb through most of the app and use this method in every viewWillAppear, so that all configuration flows through one method.

There are still bugs, code cleanup and design review feedback that I need to do, but I wanted to get this up (at least in draft form) so that we can discuss it and potentially start review.

Test Steps

  1. Run the app, bask in the glow of the system navigation bar.

…ach tab view

- also hide tab bar in article view controller on push
- header view still needs work
- plus remove unnecessary .overFullScreen presentation styles
- Fixes to Edit Link / Insert Link close button
@tonisevener tonisevener marked this pull request as draft December 20, 2024 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant