blob: d620b14f374999e66b653bb7a56f7e62a9e50158 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
//
// SettingsViewController.swift
// MullvadVPN
//
// Created by pronebird on 20/03/2019.
// Copyright © 2019 Amagicom AB. All rights reserved.
//
import UIKit
private let kAccountCellIdentifier = "Account"
class SettingsViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
// MARK: - IBActions
@IBAction func handleDismiss() {
dismiss(animated: true)
}
// MARK: - UITableViewDataSource
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
// TODO: implement
}
// MARK: - UITableViewDelegate
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if indexPath.section == 0 {
switch indexPath.row {
case 0:
let cell = tableView.dequeueReusableCell(withIdentifier: kAccountCellIdentifier, for: indexPath)
return cell
default:
break
}
}
fatalError("Index path \(indexPath) is not handled.")
}
override func numberOfSections(in tableView: UITableView) -> Int {
return 1
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 1
}
}
|