         self.setNeedsDisplay()
     }
     
-    private func placeholderUsedRect(for attributedPlaceholder: NSAttributedString) -> CGRect {
+    private func placeholderLineFragmentUsedRectForGlyphAt0GlyphIndex(attributedPlaceholder: NSAttributedString) -> CGRect {
         
         if self.placeholderTextContainer.layoutManager == nil {
             

        
        var caretRect = super.caretRect(for: position)
        
        let placeholderUsedRect = self.placeholderUsedRect(for: attributedPlaceholder)
        
        let userInterfaceLayoutDirection: UIUserInterfaceLayoutDirection
        if #available(iOS 10.0, *) {

        switch userInterfaceLayoutDirection {
            
        case .rightToLeft:
            caretRect.origin.x = placeholderInsets.left + placeholderLineFragmentUsedRect.maxX - self.textContainer.lineFragmentPadding
            
        case .leftToRight:
            fallthrough
            
        @unknown default:
            caretRect.origin.x = placeholderInsets.left + placeholderLineFragmentUsedRect.minX + self.textContainer.lineFragmentPadding
        }
        
        return caretRect
