override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. tableView.delegate = self extension ViewController: UITableViewDelegate { //func scrollViewDidScroll(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) { func scrollViewDidScroll(_ scrollView: UIScrollView) { // 下部でロードをしていいか、判定する let contentSize = scrollView.contentS