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

feat(iOS): add support to show/hide iOS 18+ elevated tab bar #14173

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

prashantsaini1
Copy link
Contributor

Goal: Show/hide tab-bar programmatically, especially on iOS 18+ elevated tab bar which obstructs custom nav bar on iPad apps with a TabGroup.

Modified property

  1. tabBarVisible: shows / hides tab bar, now on iOS 18+ also.
    • Default animation is disabled. Animations usually not to run on property updates, like view.visible on Android.
      • To enable animation, we can now use new showTabBar() / hideTabBar() methods.
      • Disabled on iOS.
      • Disabled on Android.

New methods

  1. Ti.UI.TabGroup.showTabBar(): shows the tab bar with animation.
    • iOS.
    • Android
  2. Ti.UI.TabGroup.hideTabBar(): shows the tab bar with animation.
    • iOS.
    • Android

Removed methods: (These methods do not work programmatically)

  1. Ti.UI.Window.showTabBar()
  2. Ti.UI.Window.hideTabBar()

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.

1 participant