fixed bug

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-06-27 10:24:18 -05:00
parent 289353a443
commit 1044282c33
2 changed files with 4 additions and 4 deletions

View File

@ -436,9 +436,9 @@ open class TileContainerBase<PaddingType: DefaultValuing>: Control where Padding
containerView.removeDropShadows()
}
containerView.dropShadowLayers?.forEach { $0.frame = bounds }
containerView.gradientLayers?.forEach { $0.frame = bounds }
containerView.dropShadowLayers?.forEach { $0.frame = containerView.bounds }
containerView.gradientLayers?.forEach { $0.frame = containerView.bounds }
if width != nil || height != nil {
var containerViewWidth: CGFloat?
var containerViewHeight: CGFloat?

View File

@ -714,7 +714,7 @@ extension LayoutConstraintable {
let constraints = superview.constraints
var leadingPinned = false
var trailingPinned = false
for constraint in constraints {
if (constraint.firstItem as? UIView == view && constraint.firstAttribute == .leading && constraint.relation == .equal && constraint.secondItem as? UIView == superview) ||
(constraint.secondItem as? UIView == view && constraint.secondAttribute == .leading && constraint.relation == .equal && constraint.firstItem as? UIView == superview) ||