      Sets the segmented control content type to `Hybrid` (i.e. displaying icons and text) and uses the content of the tuple to create the segments.
      - Note: Only six elements will be displayed.
      */
-    public var segmentContent: (text: [String], icon: [UIImage]) = ([], []) {
+    open var segmentContent: (text: [String], icon: [UIImage]) = ([], []) {
         didSet {
             guard segmentContent.text.count == segmentContent.icon.count else {
                 print("Text and Icon arrays out of sync.")

///The delegate of `XMSegmentedControl` must adopt `XMSegmentedControlDelegate` protocol. It allows retrieving information on which segment was tapped.
public protocol XMSegmentedControlDelegate {
    /// Tells the delegate that a specific segment is now selected.
    func xmSegmentedControl(xmSegmentedControl: XMSegmentedControl, selectedSegment: Int)
}

/**

                            $0.tintColor = self.tint
                        }
                    }
                case .text:
                    ((self.subviews.filter(isUIButton)) as! [UIButton]).forEach {
                        if $0.tag == self.selectedSegment {
                            $0.setTitleColor(self.highlightTint, for: UIControlState())
                            self.highlightView.frame.origin.x = $0.frame.origin.x
                        } else {
                            $0.setTitleColor(self.tint, for: UIControlState())
                        }
                    }
                }
