         }
     }
 
-    func height(forButtonText text: String?, width: CGFloat) -> CGFloat {
+    private func height(forButtonText text: String?, width: CGFloat) -> CGFloat {
         let insets = buttonInsets
         let textSize = CGSize(
-            width: width - (insets?.left ?? 0.0) - (insets?.right ?? 0.0),
+            width: width - insets.left - insets.right,
             height: CGFloat.greatestFiniteMagnitude)
         var attributes: [NSAttributedString.Key: Any]?
         if let font1 = button?.titleLabel?.font {

        }
    }
    private weak var label: UILabel?
    private var buttonInsets: UIEdgeInsets!

    override init(frame: CGRect) {
        super.init(frame: frame)

            options: .usesLineFragmentOrigin,
            attributes: attributes,
            context: nil
        ).size ?? .zero
        return buttonSize.height + insets.top + insets.bottom
    }

    override func sizeThatFits(_ size: CGSize) -> CGSize {
