XBPickerView 2.1.0

XBPickerView 2.1.0

LiuSkya 维护。



  • GitHub 仓库
  • 在 CocoaPods.org 的页面

GitHub 仓库

CI Status Version License Platform

XBPickerView

  • 要求 9.0+
  • iOS
  • Xcode 10.0+

Swift 5.0+

演示图

pod 'XBPickerView', '~> 2.1.0'

CocoaPods 安装

    private lazy var pickerView: PickerView = {
        $0.delegate = self
        $0.dataSource = self
        $0.unitAttributedText = NSAttributedString(string: "厘米", attributes: [NSAttributedString.Key.font : UIFont.systemFont(ofSize: 15),
        NSAttributedString.Key.foregroundColor: UIColor.black,
        NSAttributedString.Key.backgroundColor: UIColor.clear])
        $0.unitLabelLeftConstraint?.constant = 50
        $0.selectedAttributes = [.font: UIFont.systemFont(ofSize: 30), .foregroundColor: UIColor.red]
        $0.translatesAutoresizingMaskIntoConstraints = false
        return $0
    }(PickerView())

使用

许可证