2019-09-03 21:58:07 -07:00
|
|
|
//
|
|
|
|
|
// NewsCollectionViewCell.swift
|
|
|
|
|
// AltStore
|
|
|
|
|
//
|
|
|
|
|
// Created by Riley Testut on 8/29/19.
|
|
|
|
|
// Copyright © 2019 Riley Testut. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
2023-01-04 09:31:41 -05:00
|
|
|
final class NewsCollectionViewCell: UICollectionViewCell
|
2019-09-03 21:58:07 -07:00
|
|
|
{
|
|
|
|
|
@IBOutlet var titleLabel: UILabel!
|
|
|
|
|
@IBOutlet var captionLabel: UILabel!
|
|
|
|
|
@IBOutlet var imageView: UIImageView!
|
2019-10-23 14:19:32 -07:00
|
|
|
@IBOutlet var contentBackgroundView: UIView!
|
2019-09-03 21:58:07 -07:00
|
|
|
|
|
|
|
|
override func awakeFromNib()
|
|
|
|
|
{
|
|
|
|
|
super.awakeFromNib()
|
|
|
|
|
|
2023-12-07 16:45:42 -06:00
|
|
|
let descriptor = UIFontDescriptor.preferredFontDescriptor(withTextStyle: .title2).bolded()
|
|
|
|
|
self.titleLabel.font = UIFont(descriptor: descriptor, size: 0.0)
|
|
|
|
|
|
2019-10-23 14:19:32 -07:00
|
|
|
self.contentView.preservesSuperviewLayoutMargins = true
|
|
|
|
|
|
|
|
|
|
self.contentBackgroundView.layer.cornerRadius = 30
|
|
|
|
|
self.contentBackgroundView.clipsToBounds = true
|
2019-09-03 21:58:07 -07:00
|
|
|
|
|
|
|
|
self.imageView.layer.cornerRadius = 30
|
|
|
|
|
self.imageView.clipsToBounds = true
|
|
|
|
|
}
|
|
|
|
|
}
|