               indicatorColor: UIColor = UIColor.green,
               indicatorBottom: CGFloat = 2,
               indicatorHeight: CGFloat = 0.5) {
+    super.init()
     self.normalAttributedText = normalAttributedText
     self.selectedAttributedText = selectedAttributedText
     self.indicatorColor = indicatorColor

import Foundation
import UIKit

public struct ZFSegmentConfig {
  var normalAttributedText: NSMutableAttributedString?
  var selectedAttributedText: NSMutableAttributedString?
  var indicatorColor: UIColor = UIColor.green

  }
}

@objc public enum ZFSegmentViewLayoutType: Int {
  case manual = 0
  case center
}

