     }
     
     func updateView() {
+        
         let count = min(results.count, maximumRowCount)
         guard count > 0 else {
             return

        }
    }
    var date = NSDate()
    var results: [MWKSearchResult] = []
    let articlePreviewFetcher = WMFArticlePreviewFetcher()
    let dataStore: MWKDataStore = SessionSingleton.sharedInstance().dataStore
    let databaseDateFormatter = NSDateFormatter.wmf_englishUTCNonDelimitedYearMonthDayFormatter()
    let headerDateFormatter = NSDateFormatter.wmf_shortMonthNameDayOfMonthNumberDateFormatter()
    let daysToShowInSparkline: NSTimeInterval = 5

            let result = results[i]

            vc.titleLabel.text = result.displayTitle
            vc.subtitleLabel.text = result.snippet ?? result.wikidataDescription
            vc.imageView.wmf_reset()
            vc.rankLabel.text = NSNumberFormatter.localizedThousandsStringFromNumber(i + 1)
            
            if let articlePreview = self.previewStore.itemForURL(result.articleURL()) {
                if let viewCounts = articlePreview.pageViewsSortedByDate() where viewCounts.count > 0 {
                    vc.sparklineView.minDataValue = dataValueMin
                    vc.sparklineView.maxDataValue = dataValueMax
                    vc.sparklineView.dataValues = viewCounts
                    
                    if let count = viewCounts.last {
                        vc.viewCountLabel.text = NSNumberFormatter.localizedThousandsStringFromNumber(count)
                    } else {
                        vc.viewCountLabel.text = nil
                    }
                    
                    vc.viewCountAndSparklineContainerView.hidden = false
                } else {
                    vc.viewCountAndSparklineContainerView.hidden = true
                }
            } else {
                vc.viewCountAndSparklineContainerView.hidden = true
            }

            
            if let imageURL = result.thumbnailURL {
                vc.imageView.wmf_setImageWithURL(imageURL, detectFaces: true, onGPU: true, failure: { (error) in
                    vc.collapseImageAndWidenLabels = true
