From 5941bf181cc37368cfff5e1d92398bce6c7b8a5e Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Wed, 27 Feb 2019 13:30:57 +0530 Subject: on-demand: iOS: Support for SSIDs Signed-off-by: Roopesh Chander --- WireGuard/WireGuard/UI/iOS/View/TextCell.swift | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 WireGuard/WireGuard/UI/iOS/View/TextCell.swift (limited to 'WireGuard/WireGuard/UI/iOS/View/TextCell.swift') diff --git a/WireGuard/WireGuard/UI/iOS/View/TextCell.swift b/WireGuard/WireGuard/UI/iOS/View/TextCell.swift new file mode 100644 index 0000000..303f9c7 --- /dev/null +++ b/WireGuard/WireGuard/UI/iOS/View/TextCell.swift @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: MIT +// Copyright © 2018-2019 WireGuard LLC. All Rights Reserved. + +import UIKit + +class TextCell: UITableViewCell { + var message: String { + get { return textLabel?.text ?? "" } + set(value) { textLabel!.text = value } + } + + override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { + super.init(style: .default, reuseIdentifier: reuseIdentifier) + } + + required init?(coder aDecoder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + override func prepareForReuse() { + super.prepareForReuse() + message = "" + } +} -- cgit v1.2.3-59-g8ed1b