     
     var banners = [Banner]()
     
+    var currentPage = 0
+    
     var items = [ItemProtocol]()
+    
+    
     
     override func viewDidLoad() {
         super.viewDidLoad()

            })
            .addDisposableTo(disposeBag)
        
        MeowAPIProvider.shared.request(.moments) // FIXME: need to support other item types
            .mapTo(arrayOf: Moment.self)
            .subscribe(onNext: {
                [weak self] (items) in
                self?.items = items
                self?.tableView.reloadData()
            })
            .addDisposableTo(disposeBag)
        
        

        
        

    }
    override func tableView(_ tableView: UITableView, willDisplayFooterView view: UIView, forSection section: Int) {
        guard section == 1 else { return }
        loadMore()
    }
    
    func loadMore() {
        MeowAPIProvider.shared.request(.moments) // FIXME: need to support other item types
            .mapTo(arrayOf: Moment.self)
            .subscribe(onNext: {
                [weak self] (items) in
                self?.items = items // FIXME
                self?.tableView.reloadData()
                self?.currentPage += 1
            })
            .addDisposableTo(disposeBag)
    }
}
