A visual improvement of UISlider to be used to specify the alpha value of a color.
- Requires no images
- Can be used with Interface Builder
- Color property can be dynamically changed via code
Works just like a UISlider with the addition of a color property. This sets the backgrounds gradient color, the default is black. Set either directly in code or use the color property Interface Builder.
Either use the AlphaSlider.swift file directly by downloading and dragging it in to your Xcode project or use via Swift Package Manager.
dependencies: [
.package(url: "https://github.com/DavidBoyes/AlphaSlider", from: "1.0.0")
]
AlphaSlider is released under the MIT license. See LICENSE for details.