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

TMTabItemBarButton wrong orientation with landscape device and portrait locked orientation #568

Open
3 tasks done
stefanomondino opened this issue Apr 6, 2021 · 0 comments

Comments

@stefanomondino
Copy link
Contributor

stefanomondino commented Apr 6, 2021

New Issue Checklist

Issue Description

Scenario:

  • App with all rotations enabled (all checks in project/info.plist)
  • tabman view controller having .portrait as only supported interface orientation, with a bottom bar with TMTabBarItemButton as items
  • Start the app with the iPhone in landscape

Result:
The "tab bar" is showing all the items in the "landscape layout" (image and title on the same line) instead of the expected "portrait layout" (image on top, title below).

I believe this has to do with UIDeviceOrientation being used in makeComponentConstraints instead of having a way to retrieve the interface orientation.

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

No branches or pull requests

1 participant