Some casing trouble in WireGuard strings.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jeroen Leenarts
2018-05-26 09:41:09 +02:00
parent 9154c7702b
commit ed28691e4c
2 changed files with 15 additions and 6 deletions
@@ -3,7 +3,7 @@
// WireGuard
//
// Created by Jeroen Leenarts on 24-05-18.
// Copyright © 2018 Wireguard. All rights reserved.
// Copyright © 2018 WireGuard. All rights reserved.
//
import UIKit
@@ -17,12 +17,21 @@ class TunnelConfigurationTableViewController: UITableViewController {
var viewContext: NSManagedObjectContext!
weak var delegate: TunnelConfigurationTableViewControllerDelegate?
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
override func numberOfSections(in tableView: UITableView) -> Int {
return 3
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
switch section {
case 1:
return 2
default:
return 1
}
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
switch indexPath.row {
switch indexPath.section {
case 0:
return tableView.dequeueReusableCell(type: InterfaceTableViewCell.self, for: indexPath)
case 1: