2019-02-27 08:00:57 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
// Copyright © 2018-2019 WireGuard LLC. All Rights Reserved.
|
|
|
|
|
|
|
|
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 = ""
|
|
|
|
}
|
|
|
|
}
|