         rowCount = isExpanded ? maximumRowCount : 1
     }
 
-
-    
-    @available(iOSApplicationExtension 10.0, *)
     func widgetActiveDisplayModeDidChange(_ activeDisplayMode: NCWidgetDisplayMode, withMaximumSize maxSize: CGSize) {
         debounceViewUpdate()
     }

                vc.viewCountAndSparklineContainerView.isHidden = true
            }
            
            if #available(iOSApplicationExtension 10.0, *) {
                if let imageURL = result.thumbnailURL {
                    vc.imageView.wmf_setImage(with: imageURL, detectFaces: true, onGPU: true, failure: { (error) in
                        vc.collapseImageAndWidenLabels = true
                    }) {
                        vc.collapseImageAndWidenLabels = false
                    }
                } else {
                    vc.collapseImageAndWidenLabels = true
                }
            } else {
                vc.collapseImageAndWidenLabels = true

    
    override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
        super.viewWillTransition(to: size, with: coordinator)
        coordinator.animate(alongsideTransition: { (context) in
            self.layoutForSize(size)
        }) { (context) in
            if (!context.isAnimated) {
                self.layoutForSize(size)
            }
        }
    }
    
