Where can I find cleaner example and understanding of following methods. How they work, who call them and when ? and what is call stack.
func systemLayoutSizeFitting(_ targetSize: CGSize, withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority, verticalFittingPriority: UILayoutPriority) -> CGSize
func systemLayoutSizeFitting(_ targetSize: CGSize) -> CGSize
func setNeedsLayout()
func layoutIfNeeded()
func layoutSubviews()
func setNeedsUpdateConstraints()
func updateConstraintsIfNeeded()
func updateConstraints()
var intrinsicContentSize
func invalidateIntrinsicContentSize()
I have tried to understand documentation on https://developer.apple.com/documentation/, but could not understand all cases. Can some one provide me example or well written documentation?