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

PM-12664 - Update Bottom Navigation Across All Screens #1093

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

phil-livefront
Copy link
Collaborator

@phil-livefront phil-livefront commented Oct 30, 2024

🎟️ Tracking

PM-12664

📔 Objective

  • Implemented a custom BitwardenTabBarController to manage dynamic light/dark mode icon updates.
  • UIKit doesn't dynamically update tab bar images with multiple active colors for selected icons, even thought it does adjust the color. To support our new icons with two active colors when selected, we must use the original image rather than a template.
  • In idle state, icons continue to use the template image, allowing standard system adaption.
  • The new tab bar controller overrides traitCollectionDidChange, allowing the tabs to refresh when the theme changes mid-session. This approach supports theme adjustments through OS settings, Control Center, and the Bitwarden app internal settings as well.

📸 Screenshots

ScreenRecording_10-30-2024.16-38-58_1.MP4

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.37%. Comparing base (bc0356a) to head (af83ecf).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1093   +/-   ##
=======================================
  Coverage   89.36%   89.37%           
=======================================
  Files         677      677           
  Lines       42817    42862   +45     
=======================================
+ Hits        38262    38306   +44     
- Misses       4555     4556    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@phil-livefront phil-livefront marked this pull request as ready for review October 30, 2024 21:43
// MARK: Properties

/// The tabs used in the UITabBarController, mapping each `TabRoute` to its respective `Navigator`.
private var tabs: [TabRoute: any Navigator] = [:]
Copy link
Member

Choose a reason for hiding this comment

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

⚠️ This breaks in Xcode 16 as iOS18 introduces a tabs property in UITabBarController

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh good catch! thanks Federico!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants