Skip to content
Swift - Swift Alpha Slider - Demo 2 of 30
Swift
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Swift Alpha Slider.xcodeproj
Swift Alpha Slider
README.md
github-iPhoneSwiftAlphaSliderDemo01.jpg
github-iPhoneSwiftAlphaSliderDemo02.jpg
github-iPhoneSwiftAlphaSliderDemo03.jpg

README.md

SwiftAlphaSlider

Swift - Swift Alpha Slider - Demo 2 of 30

App created in Xcode 10.3 (10G8) using Swift 4.2, iOS Deployment Target 12.4 and tested on a iPhone Xr Emulator

In this demo app we demonstrate how to use the swift UISlider in code to create a Alpha Slider app.

When the user clicks the icon they are taken right into the app. They are greeted with the title on top 'Swift Alpha Slider'. Then in the middle is a label 'Alpha Slider' with a slider right below. When the user slides the slider either to the left or to the right and the alpha level changes on the text right above. The alpha level starts at 50%(.5) because the slider is in the middle. When the slider is moved all the way to the right the alpha level is 1 and you can see the text 100%(1) full in black color. But when you slide the slider all the way to the right the alpha level is 0%(0) and the text is invisible.

Coming soon:
Details and the screen cap images of the app in use can be found on Digital Mirko.

Screen Cap on a iPhone Xr device:(shown below)
(Left image)App Started, Alpha = .5, text is 50% visible.
(Middle Image)The Slider is moved all the way to the right, Alpha = 1, text is 100% visible.
(Right image)The Slider is moved all the way to the left, Alpha = 0, text is 0% visible.

You can’t perform that action at this time.