0

There's one question: should I call setNeedsLayout() & layoutIfNeeded() after calling <view>.snp.updateConstraints() method?

Or the implementation of updateConstraints() by default makes it?

Thanks in advance!

Dave
  • 5
  • 2

1 Answers1

0

It's not necessary. You can just call updateConstraints()

About setNeedsLayout() & layoutIfNeeded() you can read here: https://medium.com/@abhimuralidharan/ios-swift-setneedslayout-vs-layoutifneeded-vs-layoutsubviews-5a2b486da31c

Bogdan Bystritskiy
  • 1,325
  • 12
  • 10