Skip to content

Instantly share code, notes, and snippets.

View ivanpopelyshev's full-sized avatar

Ivan Popelyshev ivanpopelyshev

View GitHub Profile
import UIKit
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
@IBOutlet weak var tableView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
NSLayoutConstraint.activate([
tableView.topAnchor.constraint(equalTo: view.topAnchor),