-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathListBlockedTableViewCell.swift
More file actions
50 lines (39 loc) · 1.23 KB
/
ListBlockedTableViewCell.swift
File metadata and controls
50 lines (39 loc) · 1.23 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// ListBlockedTableViewCell.swift
// Lockdown
//
// Created by Aliaksandr Dvoineu on 28.03.23.
// Copyright © 2023 Confirmed Inc. All rights reserved.
//
import UIKit
final class ListBlockedTableViewCell: UITableViewCell {
// MARK: - Properties
static let identifier = "ListBlockedTableViewCell"
lazy var label: UILabel = {
let label = UILabel()
label.font = fontRegular14
label.textColor = .label
label.numberOfLines = 1
return label
}()
// MARK: - Init
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
confugureUI()
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func prepareForReuse() {
super.prepareForReuse()
label.text = nil
}
private func confugureUI() {
contentView.addSubview(label)
label.anchors.top.marginsPin()
label.anchors.leading.marginsPin()
label.anchors.bottom.marginsPin()
contentView.clipsToBounds = true
accessoryType = .disclosureIndicator
}
}