         }
     }
     /// Font of the text label.
-    open var font: UIFont = UIFont.systemFont(ofSize: 12.0, weight: .medium) {
+    open var font: UIFont! {
         didSet {
             label.font = font
         }

        
        selectedTintColor = tintColor
        tintColor = .black
        label.font = self.font
        label.text = "Item"
    }
    
    open override func layoutBadge(_ badge: TMBadgeView, in view: UIView) {

        NSLayoutConstraint.activate(constraints)
    }
}

extension TMTabItemBarButton {
    
    private func defaultFont(for device: UIDevice) -> UIFont {
        switch device.userInterfaceIdiom {
        case .pad:
            return UIFont.systemFont(ofSize: 13.0, weight: .medium)
        default:
            return UIFont.systemFont(ofSize: 10.0, weight: .medium)
        }
    }
}
