// // 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 } }