RoundSelection 1.0.0

RoundSelection 1.0.0

Rudi Luis维护。



 
依赖项
RxSwift>= 0
RxCocoa>= 0
RxGesture>= 0
 

Round Selection

这个库为您提供了用于项目的圆形按钮。

Swift Version License CocoaPods Version

Build Status

此 RoundSelection 库帮助您实现圆形选择。

功能

  • 为按钮添加图标和标题。
  • 选择背景和标题的颜色。
  • 选择勾选 图像。

需求

  • iOS 11.0+
  • Xcode 11.0+

安装

CocoaPods

您可以使用CocoaPods通过将其添加到您的 Podfile 来安装 RoundSelection

platform :ios, '15.0'
use_frameworks!
pod 'RoundSelection'

安装后导入

要获得全部好处,请导入 RoundSelection

import RoundSelection

手动操作

  1. 下载并将 RoundSelection 文件夹拖放到您的项目中。
  2. 恭喜!

使用示例

@IBOutlet
private weak var customView1: RoundSelectionView!

//RoundSelectionView
customView1.data = RoundSelectionView.Data(icon: UIImage(named: "CreditCard"), title: "Credit Card")

customView1.colorBackgroundOnSelected = .black
customView1.colorTitleOnSelected = .white

customView1.didSelected = { [weak self] isSelected in
    if let title = self?.customView1.titleData {
        print("Selected: \(isSelected) ", title)
    }
}
@IBOutlet
private weak var customView1: RoundSelectionView!

//RoundSelectionView
customView1.data = RoundSelectionView.Data(icon: UIImage(named: "CreditCard"), title: "Credit Card")
customView1.checkMarkImage = UIImage(named: "GreenCheckMark")

查看演示项目。

贡献

我们非常欢迎您为 RoundSelection 的贡献,请创建一个拉取请求。

元数据

Rudi Luis – @Linkedin

Telo Technology Limited – @Website