title: Integrating Pagination iOS Swift
body: <p>My Project Link:</p>
  
  <p><a href="https://github.com/29satnam/AdvanceTableViewSearch.git" rel="nofollow">https://github.com/29satnam/AdvanceTableViewSearch.git</a></p>
  
  <p>It's an advance table with search bar with all It's components i.e., ViewController, TableViewCell, Datasource, Object Handler and Cell initializer separate(in file) or dedicated written in Swift. I'm  using SwiftJSON to parse JSON data.</p>
  
  <p>It queries data from deployd(backend service), database is quite large with 1k+ entries. So basically, I need to implement paging/pager, so that it doesn't query all data at once.</p>
  
  <p>This is what deployd's docs says:</p>
  
  <blockquote>
    <p>$limit</p>
    
    <p>The $limit command allows you to limit the amount of objects that are
    returned from a query. This is commonly used for paging, along with
    $skip.</p>
    
    <p>// Return the top 10 scores {
        $sort: {score: -1},
        $limit: 10 }</p>
  </blockquote>
  
  <p>Http version:</p>
  
  <pre><code>http://localhost:2403/something?$limit=25&amp;$skip=25
  </code></pre>
  
  <p>I've tried MrAlek/PagedArray - a repo from github. It didn't work for me.
  Any help or suggestion would be greatly appreciated. Thanks.</p>