diff options
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/View')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/View/TextCell.swift | 10 |
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) } } |