You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I used NSLayoutAnchor to fit any view(named, myview) to contentView of UICollectionViewCell by using edges method like the following, myview is not resized but contentView is actually resized to fit to myview.
Hi @fullc0de ,
I believe this issue was caused by different layout priorities between UIKit and TinyConstraints. The UIKit default priority is 1000 and the default of TinyConstraints was 750. I changed this to be the same as in UIKit in version 2.0 of TinyConstraints which I just released. 🚀
I hope this fixes your issue..
When I used
NSLayoutAnchor
to fit any view(named,myview
) tocontentView
of UICollectionViewCell by usingedges
method like the following,myview
is not resized butcontentView
is actually resized to fit tomyview
.As I mention above, I expected that
myview
has same size ofcontentView
. On the contrary, a size ofcontentView
is affected by a size ofmyview
.On the other hand, using
NSLayoutConstraint
with Visual Format works well.Is there anything what I don't know about NSLayoutAnchor?
The text was updated successfully, but these errors were encountered: