Strange behaviour on adding constraints based upon condition
问题 I am making a view for conversation between two people. I have used UICollectionView with custom cell and using a flag based upon which I decide whether the message should be aligned towards left or right. The constraints work correctly if I use only a single direction of alignment, it even works correctly with condition based alignment unless number of messages in UICollectionView is less than four. So I know that constraints are not wrong. But as soon as I add the fourth message the