forked from madebybowtie/FlagKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FlagTableViewCell.swift
37 lines (27 loc) · 1.22 KB
/
FlagTableViewCell.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Copyright © 2017 Bowtie. All rights reserved.
//
import UIKit
class FlagTableViewCell: UITableViewCell {
static let identifier = "FlagTableViewCell"
override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
super.init(style: .value1, reuseIdentifier: reuseIdentifier)
backgroundColor = UIColor.clear
textLabel?.font = UIFont.systemFont(ofSize: 15, weight: UIFont.Weight.medium)
textLabel?.textColor = UIColor(red: 0.00, green: 0.15, blue: 0.16, alpha: 1.0)
detailTextLabel?.font = UIFont.systemFont(ofSize: 13, weight: UIFont.Weight.light)
detailTextLabel?.textColor = UIColor(red: 0.00, green: 0.15, blue: 0.16, alpha: 1.0)
imageView?.contentMode = .center
imageView?.layer.shadowColor = UIColor.black.cgColor
imageView?.layer.shadowOffset = CGSize(width: 0, height: 0.5)
imageView?.layer.shadowRadius = 1
imageView?.layer.shadowOpacity = 0.25
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func layoutSubviews() {
super.layoutSubviews()
imageView?.frame.size.width = 21
}
}