mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +00:00
Increase timeline gap visibility
This commit is contained in:
parent
71e7af8bc0
commit
f43bbdbff3
1 changed files with 9 additions and 4 deletions
|
@ -80,6 +80,7 @@ private extension LoadMoreView {
|
||||||
systemName: "arrow.up",
|
systemName: "arrow.up",
|
||||||
withConfiguration: UIImage.SymbolConfiguration(
|
withConfiguration: UIImage.SymbolConfiguration(
|
||||||
pointSize: UIFont.preferredFont(forTextStyle: .title2).pointSize))
|
pointSize: UIFont.preferredFont(forTextStyle: .title2).pointSize))
|
||||||
|
arrowImageView.contentMode = .scaleAspectFit
|
||||||
arrowImageView.setContentHuggingPriority(.required, for: .horizontal)
|
arrowImageView.setContentHuggingPriority(.required, for: .horizontal)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,16 +98,20 @@ private extension LoadMoreView {
|
||||||
activityIndicatorView.hidesWhenStopped = true
|
activityIndicatorView.hidesWhenStopped = true
|
||||||
|
|
||||||
NSLayoutConstraint.activate([
|
NSLayoutConstraint.activate([
|
||||||
|
heightAnchor.constraint(greaterThanOrEqualToConstant: .minimumButtonDimension * 2),
|
||||||
leadingArrowImageView.leadingAnchor.constraint(equalTo: readableContentGuide.leadingAnchor),
|
leadingArrowImageView.leadingAnchor.constraint(equalTo: readableContentGuide.leadingAnchor),
|
||||||
leadingArrowImageView.topAnchor.constraint(equalTo: readableContentGuide.topAnchor),
|
leadingArrowImageView.topAnchor.constraint(greaterThanOrEqualTo: readableContentGuide.topAnchor),
|
||||||
leadingArrowImageView.bottomAnchor.constraint(equalTo: readableContentGuide.bottomAnchor),
|
leadingArrowImageView.bottomAnchor.constraint(greaterThanOrEqualTo: readableContentGuide.bottomAnchor),
|
||||||
|
leadingArrowImageView.centerYAnchor.constraint(equalTo: centerYAnchor),
|
||||||
label.leadingAnchor.constraint(equalTo: leadingArrowImageView.trailingAnchor),
|
label.leadingAnchor.constraint(equalTo: leadingArrowImageView.trailingAnchor),
|
||||||
label.topAnchor.constraint(greaterThanOrEqualTo: readableContentGuide.topAnchor),
|
label.topAnchor.constraint(greaterThanOrEqualTo: readableContentGuide.topAnchor),
|
||||||
label.bottomAnchor.constraint(greaterThanOrEqualTo: readableContentGuide.bottomAnchor),
|
label.bottomAnchor.constraint(greaterThanOrEqualTo: readableContentGuide.bottomAnchor),
|
||||||
label.trailingAnchor.constraint(equalTo: trailingArrowImageView.leadingAnchor),
|
label.trailingAnchor.constraint(equalTo: trailingArrowImageView.leadingAnchor),
|
||||||
trailingArrowImageView.topAnchor.constraint(equalTo: readableContentGuide.topAnchor),
|
label.centerYAnchor.constraint(equalTo: centerYAnchor),
|
||||||
trailingArrowImageView.bottomAnchor.constraint(equalTo: readableContentGuide.bottomAnchor),
|
trailingArrowImageView.topAnchor.constraint(greaterThanOrEqualTo: readableContentGuide.topAnchor),
|
||||||
|
trailingArrowImageView.bottomAnchor.constraint(greaterThanOrEqualTo: readableContentGuide.bottomAnchor),
|
||||||
trailingArrowImageView.trailingAnchor.constraint(equalTo: readableContentGuide.trailingAnchor),
|
trailingArrowImageView.trailingAnchor.constraint(equalTo: readableContentGuide.trailingAnchor),
|
||||||
|
trailingArrowImageView.centerYAnchor.constraint(equalTo: centerYAnchor),
|
||||||
activityIndicatorView.centerXAnchor.constraint(equalTo: centerXAnchor),
|
activityIndicatorView.centerXAnchor.constraint(equalTo: centerXAnchor),
|
||||||
activityIndicatorView.centerYAnchor.constraint(equalTo: centerYAnchor)
|
activityIndicatorView.centerYAnchor.constraint(equalTo: centerYAnchor)
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue