CustomizableTableViewIndex 0.0.9

CustomizableTableViewIndex 0.0.9

wangxin 维护。



  • wang xin

CustomizableTableViewIndex

基于 Swift 编写的可定制 replacement for UITableView section index

CocoaPods 安装

pod 'CustomizableTableViewIndex', '~> 0.0.5'

使用方法

  import CustomizableTableViewIndex

  fileprivate let customizableTableViewIndexController = CustomizableTableViewIndexController()

  self.customizableTableViewIndexController.initialize(labels: [], tableView: self.tableView, option: option)

  self.customizableTableViewIndexController.reconfigure(by: arrayTitles)

自定义

public var enableScrollShow: Bool = true

public var indexViewWidth: CGFloat = 20.0
public var font: UIFont = UIFont.boldSystemFont(ofSize: 10)
public var color: UIColor = UIColor.blue

public var indicatorSize: CGFloat = 80
public var indicatorFont: UIFont = UIFont.boldSystemFont(ofSize: 32)
public var indicatorColor: UIColor = UIColor.white
public var indicatorBackgroundColor: UIColor = UIColor.black.withAlphaComponent(0.3)