From 1044282c33f8c90ee757736ad8fa3071eb5afb65 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 27 Jun 2024 10:24:18 -0500 Subject: [PATCH] fixed bug Signed-off-by: Matt Bruce --- VDS/Components/TileContainer/TileContainer.swift | 6 +++--- VDS/Protocols/LayoutConstraintable.swift | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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) ||