Further card tweaks

This commit is contained in:
Shadowfacts 2023-01-20 13:58:40 -05:00
parent 9d845bf6c1
commit 8ee916411e
1 changed files with 2 additions and 4 deletions

View File

@ -43,9 +43,6 @@ class StatusCardView: UIView {
}
private func commonInit() {
// self.clipsToBounds = true
// self.layer.borderWidth = 0.5
// self.layer.borderColor = UIColor.lightGray.cgColor
self.layer.shadowColor = UIColor.black.cgColor
self.layer.shadowRadius = 5
self.layer.shadowOpacity = 0.2
@ -57,11 +54,12 @@ class StatusCardView: UIView {
titleLabel.font = UIFont(descriptor: UIFontDescriptor.preferredFontDescriptor(withTextStyle: .subheadline).withSymbolicTraits(.traitBold)!, size: 0)
titleLabel.adjustsFontForContentSizeCategory = true
titleLabel.numberOfLines = 2
titleLabel.setContentHuggingPriority(.defaultHigh, for: .vertical)
descriptionLabel = UILabel()
descriptionLabel.font = UIFont(descriptor: .preferredFontDescriptor(withTextStyle: .caption1), size: 0)
descriptionLabel.adjustsFontForContentSizeCategory = true
descriptionLabel.numberOfLines = 2
descriptionLabel.numberOfLines = 3
descriptionLabel.setContentCompressionResistancePriority(.defaultLow, for: .vertical)
domainLabel = UILabel()