             if !selectedTitleLabels.isEmpty {
                 for label in selectedTitleLabels {
                     label.font = selectedTitleFont
+                }
+            }
+        }
+    }
+    /// The title's border width
+    public var titleBorderWidth: CGFloat = 0.0 {
+        didSet {
+            if !titleLabels.isEmpty {
+                for label in titleLabels {
+                    label.layer.borderWidth = titleBorderWidth
+                }
+            }
+        }
+    }
+    /// The title's border color
+    public var titleBorderColor: CGColor = UIColor.clear.cgColor {
+        didSet {
+            if !titleLabels.isEmpty {
+                for label in titleLabels {
+                    label.layer.borderColor = titleBorderColor
+                }
+            }
+        }
+    }
+    /// The selected title's border width
+    public var selectedTitleBorderWidth: CGFloat = 0.0 {
+        didSet {
+            if !selectedTitleLabels.isEmpty {
+                for label in selectedTitleLabels {
+                    label.layer.borderWidth = selectedTitleBorderWidth
+                }
+            }
+        }
+    }
+    /// The title's border color
+    public var selectedTitleBorderColor: CGColor = UIColor.clear.cgColor {
+        didSet {
+            if !selectedTitleLabels.isEmpty {
+                for label in selectedTitleLabels {
+                    label.layer.borderColor = titleBorderColor
                 }
             }
         }

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

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