Commit ccba1340 authored by Zandor Smith's avatar Zandor Smith 💻

Get rid of dumb function.

parent 36989645
......@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'GeneralToolsFramework'
s.version = '1.4.4'
s.version = '1.4.5'
s.summary = 'Contains general tools used in my iOS apps.'
# This description is used to generate tags and improve search results.
......
......@@ -11,15 +11,6 @@ public class UISwitchTableViewCell: UITableViewCell {
public static let identifier: String = "UISwitchTableViewCell"
public static func generateReusableCell(for tableView: UITableView) -> UISwitchTableViewCell {
var cell = tableView.dequeueReusableCell(withIdentifier: UISwitchTableViewCell.identifier) as? UISwitchTableViewCell
if cell == nil {
tableView.register(UINib(nibName: UISwitchTableViewCell.identifier, bundle: nil), forCellReuseIdentifier: UISwitchTableViewCell.identifier)
cell = tableView.dequeueReusableCell(withIdentifier: UISwitchTableViewCell.identifier) as? UISwitchTableViewCell
}
return cell!
}
var callback: (Bool) -> Void = { state in }
let theSwitch = UISwitch()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment