Skip to content

A simple UISlider subclass with a transparent ring around the slider thumb image

Notifications You must be signed in to change notification settings

lamprosg/UISaintSlider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UISaintSlider

Build Status

A simple UISlider subclass which adds a transparent ring around the slider's main small round image

The thumb position is adjusted to start/end in the small inner circle instead of the entire thumb image.

The thumb image color changes according the slider's tint color

The main thumb image size and the transparent ring are both adjustable using these 2 properties

let dotDiameter:CGFloat = 10
let dotSaintSizeMultiplier:CGFloat = 3

Simple setup for the slider

@IBOutlet weak var slider: UISaintSlider!

//Set the thumb Image
let thumbImage = self.slider.createThumbImage()

self.slider.setThumbImage(thumbImage, for: .normal)
self.slider.setThumbImage(thumbImage, for: .highlighted)
self.slider.setThumbImage(thumbImage, for: .selected)

About

A simple UISlider subclass with a transparent ring around the slider thumb image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages