Nested UIStackViews Broken Constraints

后端 未结 7 773
故里飘歌
故里飘歌 2021-01-31 02:59

I have a complex view hierarchy, built in Interface Builder, with nested UIStackViews. I get \"unsatisfiable constraints\" notices every time I hide some of my inner stackviews.

7条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-31 03:42

    I hit a similar problem with UISV-hiding. For me, the solution was to reduce the priorities of my own constraints from Required (1000) to something less than that. When UISV-hiding constrains are added, they take priority and the constraints no longer clash.

提交回复
热议问题