AlphaSlider

A visual improvement of UISlider to be used to specify the alpha value of a color.

Features

  • Requires no images
  • Can be used with Interface Builder
  • Color property can be dynamically changed via code

Usage

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.

Installation

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")
]
Sh

Author

David Boyes

GitHub

A visual improvement of UISlider for adjusting the alpha value of a colourRead More

Latest commit to the master branch on 1-26-2021
Download as zip