     @IBOutlet open var animation: RAMItemAnimation!
 
     /// The font used to render the UITabBarItem text.
-    open var textFont: UIFont = UIFont.systemFont(ofSize: 10)
+    @IBInspectable open var textFontSize: CGFloat = 10
 
     /// The color of the UITabBarItem text.
     @IBInspectable open var textColor: UIColor = UIColor.black


            container.addSubview(textLabel)
            let textLabelWidth = tabBar.frame.size.width / CGFloat(items.count) - 5.0
            createConstraints(textLabel, container: container, width: textLabelWidth, yOffset: 16 - item.yOffSet)

            if item.isEnabled == false {
                icon.alpha = 0.5

        createConstraints(view, container: container, width: size.width, height: size.height, yOffset: yOffset)
    }

    fileprivate func createConstraints(_ view: UIView, container: UIView, width: CGFloat? = nil, height: CGFloat? = nil, yOffset: CGFloat, heightRelation: NSLayoutRelation = .equal) {

        let constX = NSLayoutConstraint(item: view,
                                        attribute: NSLayoutAttribute.centerX,
