JXSegmentedBaseItemModel.swift 906 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // JXSegmentedBaseItemModel.swift
  3. // JXSegmentedView
  4. //
  5. // Created by jiaxin on 2018/12/26.
  6. // Copyright © 2018 jiaxin. All rights reserved.
  7. //
  8. import Foundation
  9. import UIKit
  10. open class JXSegmentedBaseItemModel {
  11. open var index: Int = 0
  12. open var isSelected: Bool = false
  13. open var itemWidth: CGFloat = 0
  14. /// 指示器视图Frame转换到cell
  15. open var indicatorConvertToItemFrame: CGRect = CGRect.zero
  16. open var isItemTransitionEnabled: Bool = true
  17. open var isSelectedAnimable: Bool = false
  18. open var selectedAnimationDuration: TimeInterval = 0
  19. /// 是否正在进行过渡动画
  20. open var isTransitionAnimating: Bool = false
  21. open var isItemWidthZoomEnabled: Bool = false
  22. open var itemWidthNormalZoomScale: CGFloat = 0
  23. open var itemWidthCurrentZoomScale: CGFloat = 0
  24. open var itemWidthSelectedZoomScale: CGFloat = 0
  25. public init() {
  26. }
  27. }