// SPDX-License-Identifier: MIT // Copyright © 2018-2019 WireGuard LLC. All Rights Reserved. import UIKit extension UITableViewCell { static var reuseIdentifier: String { return NSStringFromClass(self) } } extension UITableView { func register(_: T.Type) { register(T.self, forCellReuseIdentifier: T.reuseIdentifier) } func dequeueReusableCell(for indexPath: IndexPath) -> T { //swiftlint:disable:next force_cast return dequeueReusableCell(withIdentifier: T.reuseIdentifier, for: indexPath) as! T } }