 // MARK: Border
 private extension GridLayer {
     func _updateBorderLayer() {
-        if self.borderIsShownWhenGridIsInset && self.gridInsetFactor != 0 {
+        if self.borderIsShown && self.gridInsetFactor != 0 {
             self._addBorderLayer()
         } else {
             self._removeBorderLayer()

        }
    }
    
    public var borderIsShownWhenGridIsInset: Bool {
        get {
            return self._borderIsShownWhenGridIsInset
        }
        set(newBorderIsShownWhenGridIsInset) {
            self._borderIsShownWhenGridIsInset = newBorderIsShownWhenGridIsInset
        }
    }
    

        }
    }
    
    var _borderIsShown: Bool {
        get {
            return self.__borderIsShown
        }
        set(newBorderIsShown) {
            guard newBorderIsShown != self.__borderIsShown else { return }
            self.__borderIsShown = newBorderIsShown
            self._updateBorderLayer()
        }
    }
