diff --git a/VDS/Components/TileContainer/TileContainer.swift b/VDS/Components/TileContainer/TileContainer.swift index 9b121aa1..72ef86d0 100644 --- a/VDS/Components/TileContainer/TileContainer.swift +++ b/VDS/Components/TileContainer/TileContainer.swift @@ -436,9 +436,9 @@ open class TileContainerBase: 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? diff --git a/VDS/Protocols/LayoutConstraintable.swift b/VDS/Protocols/LayoutConstraintable.swift index 3661bae0..18c89c14 100644 --- a/VDS/Protocols/LayoutConstraintable.swift +++ b/VDS/Protocols/LayoutConstraintable.swift @@ -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) ||