Closed yigitserin closed 5 years ago
@yigitserin how is your view tabsArea
constrained?
When adding a bar to a custom view without a layout
closure, it is simply constrained to the leadingAnchor,
topAnchor,
trailingAnchorand
bottomAnchorof that view. By default this will intrinsically size this custom view to the required size of the bar. It appears that your
tabsArea` view is constrained to the bottom of the superview?
Yes it is constrained to the bottom of the superview. What is the correct way to setup the layout closure?
@yigitserin you don't need it constrained to the bottom of the superview, it will intrinsically size with the bar 🙂
I have some views in my view controller and I wanted to add tabs below these views. So I added a empty UIView to add tabs to it. However, tabs are taking whole screen now, and there is no room for view controllers. How to solve this?
This is my current code: