Files
eqn.ios/Sources/Earthquake Network/UI/EQNBaseTableViewCell.swift
T
2020-10-08 21:36:28 +02:00

34 lines
881 B
Swift

//
// EQNBaseTableViewCell.swift
// Earthquake Network
//
// Created by Busi Andrea on 07/10/2020.
// Copyright © 2020 Earthquake Network. All rights reserved.
//
import Foundation
class EQNBaseTableViewCell: UITableViewCell {
@IBOutlet weak var containerView: UIView!
// MARK: - View Lifecycle
override func awakeFromNib() {
super.awakeFromNib()
clipsToBounds = true
// rounded corners
containerView.layer.cornerRadius = AppTheme.shared.borderCornerRadius
containerView.layer.masksToBounds = false
// apply a shadow to the container view
containerView.layer.shadowColor = UIColor.black.cgColor
containerView.layer.shadowOpacity = 0.5
containerView.layer.shadowOffset = CGSize(width: 0, height: 2)
containerView.layer.shadowRadius = 2
}
}