Generalized UIImage use in TGPDiscreteSlider

This commit is contained in:
Xavier Schott 2017-04-15 09:09:41 -07:00
parent eb5d751045
commit d4a3d49e4d
1 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,8 @@ public class TGPDiscreteSlider:TGPSlider_INTERFACE_BUILDER {
didSet {
if let thumbImage = thumbImage {
thumbLayer.contents = thumbImage.cgImage
} else {
thumbLayer.contents = nil
}
layoutTrack()
}