put last part in else

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-07-19 12:28:14 -05:00
parent b91017068c
commit e02ea9712e

View File

@ -447,7 +447,7 @@ open class TileContainerBase<PaddingType: DefaultValuing>: Control where Padding
widthConstraint?.activate() widthConstraint?.activate()
aspectRatioConstraint = heightAnchor.constraint(equalTo: widthAnchor, multiplier: multiplier) aspectRatioConstraint = heightAnchor.constraint(equalTo: widthAnchor, multiplier: multiplier)
aspectRatioConstraint?.activate() aspectRatioConstraint?.activate()
return
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
//Height + AspectRatio Constraint - Will exit out if set //Height + AspectRatio Constraint - Will exit out if set
@ -460,8 +460,8 @@ open class TileContainerBase<PaddingType: DefaultValuing>: Control where Padding
heightConstraint?.activate() heightConstraint?.activate()
aspectRatioConstraint = widthAnchor.constraint(equalTo: heightAnchor, multiplier: multiplier) aspectRatioConstraint = widthAnchor.constraint(equalTo: heightAnchor, multiplier: multiplier)
aspectRatioConstraint?.activate() aspectRatioConstraint?.activate()
return
} } else {
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
//Width Constraint //Width Constraint
@ -481,6 +481,7 @@ open class TileContainerBase<PaddingType: DefaultValuing>: Control where Padding
heightConstraint?.activate() heightConstraint?.activate()
} }
} }
}
/// This is the size of the superview's allowed space for this container first by constrained size which would include padding/inset values an /// This is the size of the superview's allowed space for this container first by constrained size which would include padding/inset values an
private var superviewWidth: CGFloat? { private var superviewWidth: CGFloat? {