Revision control
Copy as Markdown
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
import UIKit
final class SettingsTableViewToggleCell: SettingsTableViewCell {
private let newLabel = SmartLabel()
var navigationController: UINavigationController?
init(style: UITableViewCell.CellStyle, reuseIdentifier: String?, toggle: BlockerToggle) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
setConfiguration(text: toggle.label)
accessoryView = PaddedSwitch(switchView: toggle.toggle)
selectionStyle = .none
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}