@@ -86,6 +86,13 @@ import UIKit
89+ @IBInspectable public var cornerRadius: CGFloat = 4.0 {
91+ layer.cornerRadius = cornerRadius
89 private let leftButton = UIButton()
96 private let leftButton = UIButton()
90 private let rightButton = UIButton()
97 private let rightButton = UIButton()
91 private let label = UILabel()
98 private let label = UILabel()
@@ -121,6 +128,9 @@ import UIKit
121 label.backgroundColor = labelBackgroundColor
128 label.backgroundColor = labelBackgroundColor
122 label.font = labelFont
129 label.font = labelFont
123 addSubview(label)
130 addSubview(label)
132+ layer.cornerRadius = cornerRadius
133+ clipsToBounds = true
126 public override func layoutSubviews() {
136 public override func layoutSubviews() {