Added constrainSize(_ size: CGSize) -> AnchoredConstraints method, replaced old !=0 checks with >0 for width/height constraints (matching new variadic anchor method) & removed moot translatesAutoresizingMaskIntoConstraints = false setting in fillSuperview(SafeAreaLayoutGuide) methods (as following anchor call does this). Also removed unused let anchoredConstraints = AnchoredConstraints() declaration in fillSuperview(SafeAreaLayoutGuide) methods.
Tweaks to constrainWidth/Height ensure that an invalid constant (i.e. one that is ≤0) does not alter view.
Added
constrainSize(_ size: CGSize) -> AnchoredConstraints
method, replaced old !=0 checks with >0 for width/height constraints (matching new variadicanchor
method) & removed moottranslatesAutoresizingMaskIntoConstraints = false
setting infillSuperview(SafeAreaLayoutGuide)
methods (as followinganchor
call does this). Also removed unusedlet anchoredConstraints = AnchoredConstraints()
declaration infillSuperview(SafeAreaLayoutGuide)
methods.Tweaks to
constrainWidth/Height
ensure that an invalid constant (i.e. one that is ≤0) does not alter view.