From f43bbdbff3ec6ece02b2794cf450dab0ec6f0e29 Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Mon, 8 Mar 2021 22:42:45 -0800 Subject: [PATCH] Increase timeline gap visibility --- Views/UIKit/Content Views/LoadMoreView.swift | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Views/UIKit/Content Views/LoadMoreView.swift b/Views/UIKit/Content Views/LoadMoreView.swift index 902c7fc..34bc7b3 100644 --- a/Views/UIKit/Content Views/LoadMoreView.swift +++ b/Views/UIKit/Content Views/LoadMoreView.swift @@ -80,6 +80,7 @@ private extension LoadMoreView { systemName: "arrow.up", withConfiguration: UIImage.SymbolConfiguration( pointSize: UIFont.preferredFont(forTextStyle: .title2).pointSize)) + arrowImageView.contentMode = .scaleAspectFit arrowImageView.setContentHuggingPriority(.required, for: .horizontal) } @@ -97,16 +98,20 @@ private extension LoadMoreView { activityIndicatorView.hidesWhenStopped = true NSLayoutConstraint.activate([ + heightAnchor.constraint(greaterThanOrEqualToConstant: .minimumButtonDimension * 2), leadingArrowImageView.leadingAnchor.constraint(equalTo: readableContentGuide.leadingAnchor), - leadingArrowImageView.topAnchor.constraint(equalTo: readableContentGuide.topAnchor), - leadingArrowImageView.bottomAnchor.constraint(equalTo: readableContentGuide.bottomAnchor), + leadingArrowImageView.topAnchor.constraint(greaterThanOrEqualTo: readableContentGuide.topAnchor), + leadingArrowImageView.bottomAnchor.constraint(greaterThanOrEqualTo: readableContentGuide.bottomAnchor), + leadingArrowImageView.centerYAnchor.constraint(equalTo: centerYAnchor), label.leadingAnchor.constraint(equalTo: leadingArrowImageView.trailingAnchor), label.topAnchor.constraint(greaterThanOrEqualTo: readableContentGuide.topAnchor), label.bottomAnchor.constraint(greaterThanOrEqualTo: readableContentGuide.bottomAnchor), label.trailingAnchor.constraint(equalTo: trailingArrowImageView.leadingAnchor), - trailingArrowImageView.topAnchor.constraint(equalTo: readableContentGuide.topAnchor), - trailingArrowImageView.bottomAnchor.constraint(equalTo: readableContentGuide.bottomAnchor), + label.centerYAnchor.constraint(equalTo: centerYAnchor), + trailingArrowImageView.topAnchor.constraint(greaterThanOrEqualTo: readableContentGuide.topAnchor), + trailingArrowImageView.bottomAnchor.constraint(greaterThanOrEqualTo: readableContentGuide.bottomAnchor), trailingArrowImageView.trailingAnchor.constraint(equalTo: readableContentGuide.trailingAnchor), + trailingArrowImageView.centerYAnchor.constraint(equalTo: centerYAnchor), activityIndicatorView.centerXAnchor.constraint(equalTo: centerXAnchor), activityIndicatorView.centerYAnchor.constraint(equalTo: centerYAnchor) ])