title: Infinite scroll with UITableView and an Array
body: <p>I'm new in Swift and I want to make an infinite scroll with an Array. Here it's my class TableViewController</p>
  
  <pre><code>class TableViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
    var legumes: [String] = ["Eggs", "Milk", "Chocolat", "Web", "Miel", "Pop", "Eco", "Moutarde", "Mayo", "Thea", "Pomelade", "Gear", "Etc" , "Nop", "Dews", "Tout", "Fun", "Xen" , "Yoga" ]
    override func viewDidLoad() {
      super.viewDidLoad()
      self.tableView.delegate = self
      self.tableView.dataSource = self
      func numberOfSections(in tableView: UITableView) -&gt; Int {
        return 1
      }
      func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
         return self.legumes.count
      }
      func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
        let cell = self.tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as! ImageTableViewCell
        return cell
      }
  }
  </code></pre>
  
  <p>I want to show the first ten items of my array and when I am on the bottom of the TableViewController, it will load the next ten items, etc. I don't know how to do, I see a lot of code on GitHub but I don't know how to implement them. </p>
  
  <p>Thank you so much.</p>