音视频编辑常用的音轨、画轨上区间选择器。
- 操作灵敏,触点和定位无偏移
- 支持选择中间、选择两边
- 支持设置两端图标
- 返回最小和最大区域的百分比
克隆代码。在example project,执行 pod install
YRRangePicker is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'YRRangePicker'
在需要的地方编码:
let picker = YRRangePicker.init(pickType: .outside, frame: CGRect.init(x: 50, y: 100, width: 300, height: 40))
picker.didUpdateRange = { min,max in
print("min:\(min) , max:\(max)")
}
view.addSubview(picker)
Yuri, [email protected]
YRRangePicker is available under the MIT license. See the LICENSE file for more info.