Changes NewsCollectionViewCell image aspect ratio to 3:2

Also updates fonts to use dynamic text styles.
This commit is contained in:
Riley Testut
2023-12-07 16:45:42 -06:00
parent 46a94a4c60
commit 0badb0a091
4 changed files with 45 additions and 24 deletions

View File

@@ -19,6 +19,9 @@ class NewsCollectionViewCell: UICollectionViewCell
{
super.awakeFromNib()
let descriptor = UIFontDescriptor.preferredFontDescriptor(withTextStyle: .title2).bolded()
self.titleLabel.font = UIFont(descriptor: descriptor, size: 0.0)
self.contentView.preservesSuperviewLayoutMargins = true
self.contentBackgroundView.layer.cornerRadius = 30