2023-03-01 00:48:36 -05:00
|
|
|
//
|
|
|
|
|
// NewsCollectionViewCell.swift
|
|
|
|
|
// AltStore
|
|
|
|
|
//
|
|
|
|
|
// Created by Riley Testut on 8/29/19.
|
|
|
|
|
// Copyright © 2019 Riley Testut. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
2023-03-10 19:23:32 -05:00
|
|
|
@objc
|
2023-03-01 00:48:36 -05:00
|
|
|
final class NewsCollectionViewCell: UICollectionViewCell {
|
|
|
|
|
@IBOutlet var titleLabel: UILabel!
|
|
|
|
|
@IBOutlet var captionLabel: UILabel!
|
|
|
|
|
@IBOutlet var imageView: UIImageView!
|
|
|
|
|
@IBOutlet var contentBackgroundView: UIView!
|
|
|
|
|
|
|
|
|
|
override func awakeFromNib() {
|
|
|
|
|
super.awakeFromNib()
|
|
|
|
|
|
|
|
|
|
contentView.preservesSuperviewLayoutMargins = true
|
|
|
|
|
|
|
|
|
|
contentBackgroundView.layer.cornerRadius = 30
|
|
|
|
|
contentBackgroundView.clipsToBounds = true
|
|
|
|
|
|
|
|
|
|
imageView.layer.cornerRadius = 30
|
|
|
|
|
imageView.clipsToBounds = true
|
|
|
|
|
}
|
|
|
|
|
}
|