Files
SideStore/AltStore/News/NewsCollectionViewCell.swift

31 lines
769 B
Swift
Raw Normal View History

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
class NewsCollectionViewCell: UICollectionViewCell
{
@IBOutlet var titleLabel: UILabel!
@IBOutlet var captionLabel: UILabel!
@IBOutlet var imageView: UIImageView!
@IBOutlet var contentBackgroundView: UIView!
2019-09-03 21:58:07 -07:00
override func awakeFromNib()
{
super.awakeFromNib()
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
}
}