Cannot resolve the error encountered while creating an automatic layout constraint to view a specific height

When I try to have a panel with subviews at a certain height, I encounter this error and have not yet been able to solve it.

Cannot parse constraint format: The Parameters option requires the images to be aligned vertically, which is not allowed for the layout to be vertical. In: | [MainView] [barView (== 50)] |

+4
source share
1 answer

With a vertical layout of views, you will need to choose a horizontal alignment such as NSLayoutFormatAlignAllLeft so that the layout system knows how to arrange them.

+4
source

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


All Articles