From e42dc244c1d493e607d5def2349457b0d75c80df Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 10 Jun 2024 14:23:55 -0500 Subject: [PATCH 1/2] make the last label a lower priority to anchor the bottom. Signed-off-by: Matt Bruce --- VDS/Components/TitleLockup/TitleLockup.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VDS/Components/TitleLockup/TitleLockup.swift b/VDS/Components/TitleLockup/TitleLockup.swift index af52915a..46529b0f 100644 --- a/VDS/Components/TitleLockup/TitleLockup.swift +++ b/VDS/Components/TitleLockup/TitleLockup.swift @@ -385,8 +385,8 @@ open class TitleLockup: View { } //pin the last view to the bottom of this view - previousView?.pinBottom(0) - + previousView?.pinBottom(anchor: bottomAnchor, priority: .defaultLow) + //debugging for borders eyebrowLabel.debugBorder(show: hasDebugBorder, color: .green) titleLabel.debugBorder(show: hasDebugBorder, color: .green) From 9cf0afeda5a341d3e8c23a728e7fc408f209498a Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 10 Jun 2024 14:50:21 -0500 Subject: [PATCH 2/2] increased the priority Signed-off-by: Matt Bruce --- VDS/Components/TitleLockup/TitleLockup.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VDS/Components/TitleLockup/TitleLockup.swift b/VDS/Components/TitleLockup/TitleLockup.swift index 46529b0f..a54982c5 100644 --- a/VDS/Components/TitleLockup/TitleLockup.swift +++ b/VDS/Components/TitleLockup/TitleLockup.swift @@ -385,7 +385,7 @@ open class TitleLockup: View { } //pin the last view to the bottom of this view - previousView?.pinBottom(anchor: bottomAnchor, priority: .defaultLow) + previousView?.pinBottom(anchor: bottomAnchor, priority: UILayoutPriority(700)) //debugging for borders eyebrowLabel.debugBorder(show: hasDebugBorder, color: .green)