AGVolumeControlView:一款有点不同的环形进程控制条组件

466 阅读1分钟
原文链接: github.com

Made by Agilie CI Status Version License Platform

We’re happy to introduce you a new free regulator AGVolumeControlView based on our lightweight open-source visual component that doesn't require extra lines of code and can be easily integrated into your project. Visual regulator can be connected to a player or other smart house’s device making the process of controlling the level of a particular characteristic much easier.

Link to Android repo

Check out our Android VolumeControlView

Installation

AGVolumeControlView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "AGVolumeControlView"

Demo

VolumeControlView Demo

Example

To run the example project, clone the repo, and run pod install from the Example directory first. You can also see an example :

Just bind AGVolumeControl as outlet to your ViewController:

@IBOutlet weak var volumeControl: AGVolumeControl!

And start playing your control. AGVolumeControl is a regulator of any controllable parameter, such as the volume, brightness, speed, etc.

self.startPlay()

The visual display of this regulator can be easily customized. One has a possibility to choose colors, the gradient style and background according to the wishes:

    open var thumbRadius: CGFloat
    
    open var customBackgroundColor : UIColor
    
    open var volumeControlSliderColor : UIColor
    
    open var decibelsLevel : CGFloat
    
    open var hueStart : CGFloat
    
    open var hueEnd : CGFloat

    open var minimumValue: CGFloat

    open var maximumValue: CGFloat
    
    open var thumbColor: UIColor
    
    open var gradientMaskColor: UIColor

Troubleshooting

Problems? Check the Issues block to find the solution or create an new issue that we will fix asap. Feel free to contribute.

Author

This iOS visual component is open-sourced by Agilie Team info@agilie.com

Contributors

Contact us

If you have any questions, suggestions or just need a help with web or mobile development, please email us at ios@agilie.com. You can ask us anything from basic to complex questions.

License

AGVolumeControlView is available under The MIT License (MIT) Copyright © 2017 Agilie Team