aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/View/TextCell.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-03-09 09:47:35 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-18 06:46:55 +0100
commit64925cab898b646e4e6d6b0bab10a723ffa99231 (patch)
tree857f70902b3036d84cb528b2090c9f469d77cb35 /WireGuard/WireGuard/UI/iOS/View/TextCell.swift
parenton-demand: Remove ActivateOnDemandSetting type (diff)
downloadwireguard-apple-64925cab898b646e4e6d6b0bab10a723ffa99231.tar.xz
wireguard-apple-64925cab898b646e4e6d6b0bab10a723ffa99231.zip
on-demand: iOS: SSIDs view: Always show the selected SSIDs section
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/iOS/View/TextCell.swift10
1 files changed, 10 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/View/TextCell.swift b/WireGuard/WireGuard/UI/iOS/View/TextCell.swift
index 303f9c7..ba9b37f 100644
--- a/WireGuard/WireGuard/UI/iOS/View/TextCell.swift
+++ b/WireGuard/WireGuard/UI/iOS/View/TextCell.swift
@@ -17,8 +17,18 @@ class TextCell: UITableViewCell {
fatalError("init(coder:) has not been implemented")
}
+ func setTextColor(_ color: UIColor) {
+ textLabel?.textColor = color
+ }
+
+ func setTextAlignment(_ alignment: NSTextAlignment) {
+ textLabel?.textAlignment = alignment
+ }
+
override func prepareForReuse() {
super.prepareForReuse()
message = ""
+ setTextColor(.black)
+ setTextAlignment(.left)
}
}