@@ -86,6 +86,13 @@ import UIKit
8686 }
8787 }
8888
89+ @IBInspectable public var cornerRadius: CGFloat = 4.0 {
90+ didSet {
91+ layer.cornerRadius = cornerRadius
92+ clipsToBounds = true
93+ }
94+ }
95+
8996 private let leftButton = UIButton()
9097 private let rightButton = UIButton()
9198 private let label = UILabel()
@@ -121,6 +128,9 @@ import UIKit
121128 label.backgroundColor = labelBackgroundColor
122129 label.font = labelFont
123130 addSubview(label)
131+
132+ layer.cornerRadius = cornerRadius
133+ clipsToBounds = true
124134 }
125135
126136 public override func layoutSubviews() {