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

import Foundation
import UIKit

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

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