Further card tweaks
This commit is contained in:
parent
9d845bf6c1
commit
8ee916411e
|
@ -43,9 +43,6 @@ class StatusCardView: UIView {
|
||||||
}
|
}
|
||||||
|
|
||||||
private func commonInit() {
|
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.shadowColor = UIColor.black.cgColor
|
||||||
self.layer.shadowRadius = 5
|
self.layer.shadowRadius = 5
|
||||||
self.layer.shadowOpacity = 0.2
|
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.font = UIFont(descriptor: UIFontDescriptor.preferredFontDescriptor(withTextStyle: .subheadline).withSymbolicTraits(.traitBold)!, size: 0)
|
||||||
titleLabel.adjustsFontForContentSizeCategory = true
|
titleLabel.adjustsFontForContentSizeCategory = true
|
||||||
titleLabel.numberOfLines = 2
|
titleLabel.numberOfLines = 2
|
||||||
|
titleLabel.setContentHuggingPriority(.defaultHigh, for: .vertical)
|
||||||
|
|
||||||
descriptionLabel = UILabel()
|
descriptionLabel = UILabel()
|
||||||
descriptionLabel.font = UIFont(descriptor: .preferredFontDescriptor(withTextStyle: .caption1), size: 0)
|
descriptionLabel.font = UIFont(descriptor: .preferredFontDescriptor(withTextStyle: .caption1), size: 0)
|
||||||
descriptionLabel.adjustsFontForContentSizeCategory = true
|
descriptionLabel.adjustsFontForContentSizeCategory = true
|
||||||
descriptionLabel.numberOfLines = 2
|
descriptionLabel.numberOfLines = 3
|
||||||
descriptionLabel.setContentCompressionResistancePriority(.defaultLow, for: .vertical)
|
descriptionLabel.setContentCompressionResistancePriority(.defaultLow, for: .vertical)
|
||||||
|
|
||||||
domainLabel = UILabel()
|
domainLabel = UILabel()
|
||||||
|
|
Loading…
Reference in New Issue