I've created one Tab bar bottom view with proportional height related to main superview.
Whereas, tab bar bottom view height in 6+ -> 59, in 6 -> 53, in 5 -> 45 & in 4s -> 38. It's working proportionally fine. But what if I want this tab bar view's height should be minimum 46, at maximum it should work proportionally.
So based on the above heights on different devices, I want to achieve 6+ -> 59, 6 -> 53, 5 -> 46 & in 4s -> 46.
So what could be a possible solution in Auto layout to achieve this.
Thanks in Advance.
You should add height constraint to more than 46 and its priority is 1000.And then set priority of top space constraint to 750.
Try adding an extra height constraint to the tab bar that is "greater than or equal to" 46.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With