                 titleLabel.lineBreakMode = .byTruncatingTail
                 titleLabel.textAlignment = .center
                 titleLabel.font = titleFont
+                titleLabel.layer.borderWidth = titleBorderWidth
+                titleLabel.layer.borderColor = titleBorderColor
                 
                 let selectedTitleLabel = UILabel()
                 selectedTitleLabel.textColor = selectedTitleColor

                selectedTitleLabel.lineBreakMode = .byTruncatingTail
                selectedTitleLabel.textAlignment = .center
                selectedTitleLabel.font = selectedTitleFont
                
                return (titleLabel, selectedTitleLabel)
            }

        get {
            return indicatorView.backgroundColor
        }
        set {
            indicatorView.backgroundColor = newValue
        }
    }
    /// The indicator view's inset. Defaults to 2.0.
    @IBInspectable public var indicatorViewInset: CGFloat = 2.0 {
