2019-02-27 08:00:57 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2021-06-17 14:56:46 +00:00
|
|
|
// Copyright © 2018-2021 WireGuard LLC. All Rights Reserved.
|
2019-02-27 08:00:57 +00:00
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
class ChevronCell: UITableViewCell {
|
|
|
|
var message: String {
|
|
|
|
get { return textLabel?.text ?? "" }
|
|
|
|
set(value) { textLabel?.text = value }
|
|
|
|
}
|
|
|
|
|
2019-03-08 09:25:08 +00:00
|
|
|
var detailMessage: String {
|
|
|
|
get { return detailTextLabel?.text ?? "" }
|
|
|
|
set(value) { detailTextLabel?.text = value }
|
|
|
|
}
|
|
|
|
|
2019-02-27 08:00:57 +00:00
|
|
|
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
|
2019-03-08 09:25:08 +00:00
|
|
|
super.init(style: .value1, reuseIdentifier: reuseIdentifier)
|
2019-02-27 08:00:57 +00:00
|
|
|
accessoryType = .disclosureIndicator
|
|
|
|
}
|
|
|
|
|
|
|
|
required init?(coder aDecoder: NSCoder) {
|
|
|
|
fatalError("init(coder:) has not been implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
override func prepareForReuse() {
|
|
|
|
super.prepareForReuse()
|
|
|
|
message = ""
|
|
|
|
}
|
|
|
|
}
|