Skip to content

Releases: SwiftArchitect/TGPControls

Color ticks!

06 Jun 22:00
Compare
Choose a tag to compare

Added color controls for ticks, independently on the left and the right of the slider.

v5.0.3

05 Jun 05:21
Compare
Choose a tag to compare

Issue #47
Issue #48

Created a right-to-left demo application (arabic)

Swift 4, formatting improvements

01 Jun 22:09
Compare
Choose a tag to compare

Fixed #26 (Color for ticks) #37 (Possible Xcode related crash) #38 (Xcode 9.4)
Merged #35 #44
Pod 5.0.1

Introducing Carthage Support

15 Apr 16:41
Compare
Choose a tag to compare
  • Added support for UIImage for ticks, track & thumb
  • Fixed rightmost tick not being drawn
  • Cleaner demo

Swift 3

15 Feb 02:55
Compare
Choose a tag to compare

Closes #23 : Move to Swift 3

Migration to Swift 3, can still be used with Objective-C.
Requires iOS 8 or better.

To run under iOS 7, use legacy version v2.1.0

v2.1.0

14 Feb 02:41
Compare
Choose a tag to compare

Closes #22, closes #24.

Updated documentation to reflect Better support for end labels location and Label vertical animations control.

UISlider compatibility

07 Dec 08:39
Compare
Choose a tag to compare

2.0.0 Upgrade Notes

If you were using previous versions of TGPControls, you may need to address the following:

  • search and replace instances of thumbColor by thumbTintColor. It is the same property adopting UISlider naming convention.
  • tintColor now affects the right side of the slider (the opposite of what it used to be). Again, this is adopting UISlider behavior convention.
  • 2 new properties are available: minimumTrackTintColor and maximumTrackTintColor, also adopting UISlider behavior convention.

Cosmetic changes

  • The ComponentStyleIOS thumb responds to thumbTintColor. It has be reduced ever so slightly to match iOS 9 appearance.
  • The ComponentStyleIOS track matches the iOS track colors exactly.
  • The track can be drawn at any size and maintain its color, clipping and integrity, even when the thumb is invisible.
  • ticks color is controlled by tintColor, and is not overruled by minimumTrackTintColor.

UIControlEvents, Fill with alpha

06 Dec 03:24
Compare
Choose a tag to compare

Fixes #13, @hebertialmeida's #15, #16 .

  • Support for UIControlEvents, fired in the same order as with UISlider
    Add listener:

    self.discreteSlider.addTarget(self, action: "touchUpInside:event:", forControlEvents: .TouchUpInside)
    

    Listen:

    func touchUpInside(sender: UIControl, event:UIEvent) {
        print("touchUpInside")
    }
    
  • Use CGContextSetFillColorWithColor to support alpha channel

Production release

13 Mar 22:48
Compare
Choose a tag to compare

Animated labels and discrete slider with customizable ticks, track, thumb, color, images. Use Core Animation (CALayer) for smooth animation. Very responsive, elegant.

Most of all, a snap to drop as a replacement of UISlider.

Fix Discrete Slider and add animation duration

04 Mar 20:31
Compare
Choose a tag to compare

Fixes #6
Fixes #7