diff options
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/View/SwitchCell.swift')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/View/SwitchCell.swift | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/View/SwitchCell.swift b/WireGuard/WireGuard/UI/iOS/View/SwitchCell.swift index 6169593..0d6e4de 100644 --- a/WireGuard/WireGuard/UI/iOS/View/SwitchCell.swift +++ b/WireGuard/WireGuard/UI/iOS/View/SwitchCell.swift @@ -16,7 +16,11 @@ class SwitchCell: UITableViewCell { get { return switchView.isEnabled } set(value) { switchView.isEnabled = value - textLabel?.textColor = value ? .black : .gray + if #available(iOS 13.0, *) { + textLabel?.textColor = value ? .label : .secondaryLabel + } else { + textLabel?.textColor = value ? .black : .gray + } } } |