diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-12-22 01:55:42 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-12-22 01:55:42 +0100 |
commit | 41a4c6362a1440512a326805ddf8730c932c3b57 (patch) | |
tree | 1738066255cd0f2847ddc3c9448afdf7e87c6db5 /WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift | |
parent | Move model helpers to model directory (diff) | |
download | wireguard-apple-41a4c6362a1440512a326805ddf8730c932c3b57.tar.xz wireguard-apple-41a4c6362a1440512a326805ddf8730c932c3b57.zip |
Attempt to strongly recommend things
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift index 17e5130..db7db66 100644 --- a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift @@ -232,8 +232,11 @@ extension TunnelEditTableViewController { case .name, .privateKey: cell.placeholderText = tr("tunnelEditPlaceholderTextRequired") cell.keyboardType = .default - case .addresses, .dns: - cell.placeholderText = tr("tunnelEditPlaceholderTextOptional") + case .addresses: + cell.placeholderText = tr("tunnelEditPlaceholderTextStronglyRecommended") + cell.keyboardType = .numbersAndPunctuation + case .dns: + cell.placeholderText = tunnelViewModel.peersData.contains(where: { return $0.shouldStronglyRecommendDNS }) ? tr("tunnelEditPlaceholderTextStronglyRecommended") : tr("tunnelEditPlaceholderTextOptional") cell.keyboardType = .numbersAndPunctuation case .listenPort, .mtu: cell.placeholderText = tr("tunnelEditPlaceholderTextAutomatic") |