     
     override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
         super.viewWillTransition(to: size, with: coordinator)
-        
-        if #available(iOSApplicationExtension 10.0, *) {
-            coordinator.animate(alongsideTransition: { (context) in
-
+        coordinator.animate(alongsideTransition: { (context) in
+            self.layoutForSize(size)
+        }) { (context) in
+            if (!context.isAnimated) {
                 self.layoutForSize(size)
-            }) { (context) in
-                if (!context.isAnimated) {
-                    self.layoutForSize(size)
-                }
-            }
-        } else {
-            layoutForSize(size)
+            }
         }
     }
     

        rowCount = isExpanded ? maximumRowCount : 1
    }


    
    @available(iOSApplicationExtension 10.0, *)
    func widgetActiveDisplayModeDidChange(_ activeDisplayMode: NCWidgetDisplayMode, withMaximumSize maxSize: CGSize) {
        debounceViewUpdate()
    }

                vc.separatorView.isHidden = false
            }
            vc.separatorView.backgroundColor = theme.colors.border
            
            i += 1
        }
