mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-16 02:03:32 +01:00
Changes NewsCollectionViewCell image aspect ratio to 3:2
Also updates fonts to use dynamic text styles.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user