     
     init(textView: NSTextView, forPressAndHold: Bool = false) {
         
+        self.textView = textView
+        
         super.init()
         
         NSTouchBar.isAutomaticValidationEnabled = true
         
-        self.textView = textView
         self.delegate = self
         self.defaultItemIdentifiers = forPressAndHold ? [.textSizeSlider] : [.textSizeActual, .textSizeSlider]
         

            
        case .textSizeSlider:
            let item = NSSliderTouchBarItem(identifier: identifier)
            item.slider.doubleValue = Double(self.textView?.scale ?? 1.0)
            item.slider.maxValue = Double(self.textView?.enclosingScrollView?.maxMagnification ?? 5.0)
            item.slider.minValue = Double(self.textView?.enclosingScrollView?.minMagnification ?? 0.2)
            item.minimumValueAccessory = NSSliderAccessory(image: #imageLiteral(resourceName: "SmallTextSizeTemplate"))
            item.maximumValueAccessory = NSSliderAccessory(image: #imageLiteral(resourceName: "LargeTextSizeTemplate"))
            item.target = self

    
    // MARK: Private Properties
    
    private var textView: NSTextView
    
    
    
