diff --git a/Sources/Earthquake Network/Controllers/Seismic Networks/Cells/SeismicNetworkTableViewCell.swift b/Sources/Earthquake Network/Controllers/Seismic Networks/Cells/SeismicNetworkTableViewCell.swift index 797af71..8b140ad 100644 --- a/Sources/Earthquake Network/Controllers/Seismic Networks/Cells/SeismicNetworkTableViewCell.swift +++ b/Sources/Earthquake Network/Controllers/Seismic Networks/Cells/SeismicNetworkTableViewCell.swift @@ -90,7 +90,7 @@ class SeismicNetworkTableViewCell: UITableViewCell { let label = UILabel() label.translatesAutoresizingMaskIntoConstraints = false label.font = UIFont.preferredFont(for: .title2, weight: .semibold) - label.numberOfLines = 2 + label.numberOfLines = 3 return label }() @@ -256,7 +256,9 @@ class SeismicNetworkTableViewCell: UITableViewCell { titleImageView.widthAnchor.constraint(equalTo: titleImageView.heightAnchor).isActive = true networkLabel.heightAnchor.constraint(equalToConstant: 34.0).isActive = true networkLabel.setContentHuggingPriority(.init(800), for: .horizontal) + networkLabel.setContentCompressionResistancePriority(.defaultHigh, for: .horizontal) placeLabel.setContentHuggingPriority(.init(200), for: .horizontal) + placeLabel.setContentCompressionResistancePriority(.defaultLow, for: .horizontal) shareButton.widthAnchor.constraint(equalToConstant: titleComponentsHeight).isActive = true shareButton.widthAnchor.constraint(equalTo: shareButton.heightAnchor).isActive = true