 }
 
 struct HintViewAttributes {
-    var size: CGSize
+    var minSize: CGSize
     var cornerRadius: CGFloat
     var backgroundColor: UIColor
     var textColor: UIColor
     var font: UIFont
-    
-    init(size: CGSize = CGSize(width: 76, height: 32),
+    var textPaddings: CGFloat
+    
+    init(minSize: CGSize = CGSize(width: 76, height: 32),
          cornerRadius: CGFloat = 5,
          backgroundColor: UIColor = UIColor.black.withAlphaComponent(0.3),
          textColor: UIColor = .black,
-         font: UIFont = .systemFont(ofSize: 15)) {
-        self.size = size
+         font: UIFont = .systemFont(ofSize: 15),
+         textPaddings: CGFloat = 8) {
+        self.minSize = minSize
         self.cornerRadius = cornerRadius
         self.backgroundColor = backgroundColor
         self.textColor = textColor
         self.font = font
+        self.textPaddings = textPaddings
     }
 }
 

        guard let hintView = hintView else { return }
        hintView.backgroundColor = hintViewAttributes.backgroundColor
        hintView.layer.cornerRadius = hintViewAttributes.cornerRadius
        hintView.frame.size = hintViewAttributes.size
        hintView.textColor = hintViewAttributes.textColor
        hintView.font = hintViewAttributes.font
    }

        
        if let text = dataSource?.textForHintView?(_hintView, at: point, for: self) {
            _hintView.text = text
            var size = _hintView.sizeThatFits(hintViewAttributes.minSize)
            size.width += hintViewAttributes.textPaddings * 2
            size.width = max(hintViewAttributes.minSize.width, size.width)
            size.height = max(hintViewAttributes.minSize.height, size.height)
            _hintView.frame.size = size
            _hintView.center = point
        } else {
