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

TabBarItemView's root view is zero-sized making it hard to use in stack views #110

Closed
1 of 2 tasks
MathieuKavalec opened this issue Jul 8, 2020 · 0 comments · Fixed by #147
Closed
1 of 2 tasks
Assignees

Comments

@MathieuKavalec
Copy link
Contributor

MathieuKavalec commented Jul 8, 2020

Environment Information

  • Platform:
    • iOS
    • macOS

Please provide a reproduction of the bug:

Add TabBarItemViews to a stack view. Set the content hugging priority to minimize the size of the views.

Actual behavior:

Notice that the views get squished.
Through the view hierarchy debugger, we can see that the TabBarItemView's root view is zero-sized.
The label and image that are contained in that view are displayed outside of their root view's bounds.

Expected behavior:

TabBarItemView should contain its subviews and have a reliable intrinsic size that reflects its contents.

Priorities and help requested:

Requested priority: Normal

@harrieshin harrieshin self-assigned this Jul 30, 2020
@harrieshin harrieshin linked a pull request Jul 30, 2020 that will close this issue
7 tasks
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 a pull request may close this issue.

2 participants