Skip to content

Instantly share code, notes, and snippets.

@Hadevs
Created January 13, 2019 20:39
Show Gist options
  • Save Hadevs/0ee4a5f5094ca870609ed24210ea7596 to your computer and use it in GitHub Desktop.
Save Hadevs/0ee4a5f5094ca870609ed24210ea7596 to your computer and use it in GitHub Desktop.
import UIKit
class ProVersionViewController: UIViewController {
@IBOutlet weak var tableView: UITableView!
private let constructor = ProVersionConstructor()
private lazy var dataSource = constructor.delegateDataSource()
override func viewDidLoad() {
super.viewDidLoad()
tableView.separatorInset = .goAway
tableView.backgroundColor = .clear
view.backgroundColor = CRColor.chatBackgroundColor
NavigationBarDecorator.decorate(self)
constructor.setup(at: tableView, dataSource: dataSource)
self.title = "Pro Version"
tableView.contentInset = UIEdgeInsets(top: 16, left: 0, bottom: 32, right: 0)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment