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

TabBarItems alignment on BottomNavigationController #1288

Open
Hamna21 opened this issue Jan 21, 2020 · 1 comment
Open

TabBarItems alignment on BottomNavigationController #1288

Hamna21 opened this issue Jan 21, 2020 · 1 comment

Comments

@Hamna21
Copy link

Hamna21 commented Jan 21, 2020

Hello @DanielDahan, @OrkhanAlikhanov!

I am facing an issue with BottomNavigationController after updating to latest pod.
When switching back to portrait from landscape mode, the alignment of TabBarItems on Tab Bar gets misplaced, all items get gathered on left.

image

Waiting for response! Thank you!

@Hamna21
Copy link
Author

Hamna21 commented Jan 29, 2020

Fixed this issue by using new TabBar properties for iOS 13.

let appearance = UITabBarAppearance()
            appearance.stackedItemPositioning = .centered
            appearance.stackedLayoutAppearance.normal.titleTextAttributes = normalAttribute
            appearance.stackedLayoutAppearance.selected.titleTextAttributes = selectedAttribute
            tabBar.standardAppearance = appearance

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

No branches or pull requests

1 participant