From 574d8433b3402b93352a85f11726adf9e93fbcdd Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Fri, 8 Mar 2019 14:55:08 +0530 Subject: on-demand: iOS: Update on-demand info shown in tunnel edit view Signed-off-by: Roopesh Chander --- WireGuard/WireGuard/UI/iOS/View/ChevronCell.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'WireGuard/WireGuard/UI/iOS/View') diff --git a/WireGuard/WireGuard/UI/iOS/View/ChevronCell.swift b/WireGuard/WireGuard/UI/iOS/View/ChevronCell.swift index 94e4e05..a059b9c 100644 --- a/WireGuard/WireGuard/UI/iOS/View/ChevronCell.swift +++ b/WireGuard/WireGuard/UI/iOS/View/ChevronCell.swift @@ -9,8 +9,13 @@ class ChevronCell: UITableViewCell { set(value) { textLabel?.text = value } } + var detailMessage: String { + get { return detailTextLabel?.text ?? "" } + set(value) { detailTextLabel?.text = value } + } + override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { - super.init(style: .default, reuseIdentifier: reuseIdentifier) + super.init(style: .value1, reuseIdentifier: reuseIdentifier) accessoryType = .disclosureIndicator } -- cgit v1.2.3-59-g8ed1b