diff options
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/SharedViews/CheckmarkCell.swift')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/SharedViews/CheckmarkCell.swift | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/SharedViews/CheckmarkCell.swift b/WireGuard/WireGuard/UI/iOS/SharedViews/CheckmarkCell.swift deleted file mode 100644 index db4b6c9..0000000 --- a/WireGuard/WireGuard/UI/iOS/SharedViews/CheckmarkCell.swift +++ /dev/null @@ -1,31 +0,0 @@ -// SPDX-License-Identifier: MIT -// Copyright © 2018 WireGuard LLC. All Rights Reserved. - -import UIKit - -class CheckmarkCell: UITableViewCell { - var message: String { - get { return textLabel?.text ?? "" } - set(value) { textLabel!.text = value } - } - var isChecked: Bool { - didSet { - accessoryType = isChecked ? .checkmark : .none - } - } - - override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { - isChecked = false - super.init(style: .default, reuseIdentifier: reuseIdentifier) - } - - required init?(coder aDecoder: NSCoder) { - fatalError("init(coder:) has not been implemented") - } - - override func prepareForReuse() { - super.prepareForReuse() - message = "" - isChecked = false - } -} |