 
 import UIKit
 
+/// `TMBarButton` that consists of a single label - that's it!
+///
+/// Probably the most commonly seen example of a bar button.
 public final class TMLabelBarButton: TMBarButton {
     
     // MARK: Defaults

    
    // MARK: Properties
    
    private let label = UILabel()
    
    public var color: UIColor = .black {
        didSet {
            if !isSelected {

            }
        }
    }
    /// Color of the text when selected.
    public var selectedColor: UIColor = UIView.defaultTintColor {
        didSet {
            if isSelected  {
                label.textColor = selectedColor
            }
        }
    }
    /// Font of the text when unselected / normal.
    public var font: UIFont = Defaults.font {
        didSet {
            calculateFontIntrinsicContentSize(for: text)
            if !isSelected || selectedFont == nil {
                label.font = font
            }
        }
    }
    /// Font of the text when selected.
    public var selectedFont: UIFont? {
        didSet {
            calculateFontIntrinsicContentSize(for: text)
            guard let selectedFont = self.selectedFont, isSelected else {
                return
            }
            label.font = selectedFont
        }
    }
    
