Runtime warning when content compression / compression restrictions conflict with certain width and height restrictions

Example

A UIButton that has:

  • Priority Width Limit 1000 (e.g. width = 20)
  • horizontal compression priority priority 1000 priorities
  • wide content that is over 20

I don't get a warning at runtime (in the debugger), but it seems to me that I should. Content (button name) is truncated. Why is there no warning and how to turn it on?

+4
source share

Source: https://habr.com/ru/post/1649909/


All Articles