可折叠步进器
一个可以隐藏一部分自己的简单步进器
版本 0.0.1
- 2020年1月 - 可折叠步进器 🥳
安装
CocoaPods
pod 'HidableStepper''
手动
您可以直接将HidableStepper
文件夹复制粘贴到您的项目中。
使用方法
当quantityOfItems
等于minimumNumberOfItems
时,该组件将自动隐藏除了加号按钮之外的所有内容,默认值为0。
您可以通过调整additionButton
和decreaseButton
的属性或设置组件预定义类型(.normal、.fullyRounded、.bottomRounded、.circular)来自定义按钮设置。
- .normal
- .fullyRounded
- .bottomRounded
- .circular
通过将其委托(HidableStepperDelegate
)的标志给组件来控制组件的行为。
错误和反馈
有关错误、疑问和讨论,请使用Github问题。