wireguard-apple/WireGuard/ViewControllers/TunnelConfigurationTableVie...

52 lines
1.4 KiB
Swift
Raw Normal View History

//
2018-05-26 07:17:36 +00:00
// TunnelConfigurationTableViewController.swift
// WireGuard
//
// Created by Jeroen Leenarts on 24-05-18.
// Copyright © 2018 Wireguard. All rights reserved.
//
import UIKit
import CoreData
import BNRCoreDataStack
2018-05-26 07:17:36 +00:00
protocol TunnelConfigurationTableViewControllerDelegate: class {
}
2018-05-26 07:17:36 +00:00
class TunnelConfigurationTableViewController: UITableViewController {
var viewContext: NSManagedObjectContext!
2018-05-26 07:17:36 +00:00
weak var delegate: TunnelConfigurationTableViewControllerDelegate?
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 3
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
switch indexPath.row {
case 0:
return tableView.dequeueReusableCell(type: InterfaceTableViewCell.self, for: indexPath)
case 1:
return tableView.dequeueReusableCell(type: PeerTableViewCell.self, for: indexPath)
default:
return tableView.dequeueReusableCell(type: AddPeerTableViewCell.self, for: indexPath)
}
}
}
class InterfaceTableViewCell: UITableViewCell {
}
class PeerTableViewCell: UITableViewCell {
}
class AddPeerTableViewCell: UITableViewCell {
}
2018-05-26 07:17:36 +00:00
extension TunnelConfigurationTableViewController: Identifyable {}
extension InterfaceTableViewCell: Identifyable {}
extension PeerTableViewCell: Identifyable {}
extension AddPeerTableViewCell: Identifyable {}