Skip to content

Releases: SwiftArchitect/TGPControls

Color ticks!

Choose a tag to compare

@SwiftArchitect SwiftArchitect released this 06 Jun 22:00

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

v5.0.3

Choose a tag to compare

@SwiftArchitect SwiftArchitect released this 05 Jun 05:21

Issue #47
Issue #48

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

Swift 4, formatting improvements

Choose a tag to compare

@SwiftArchitect SwiftArchitect released this 01 Jun 22:09

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

Introducing Carthage Support

Choose a tag to compare

@SwiftArchitect SwiftArchitect released this 15 Apr 16:41
  • Added support for UIImage for ticks, track & thumb
  • Fixed rightmost tick not being drawn
  • Cleaner demo

Swift 3

Choose a tag to compare

@SwiftArchitect SwiftArchitect released this 15 Feb 02:55

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

Choose a tag to compare

@SwiftArchitect SwiftArchitect released this 14 Feb 02:41

Closes #22, closes #24.

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

UISlider compatibility

Choose a tag to compare

@SwiftArchitect SwiftArchitect released this 07 Dec 08:39

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

Choose a tag to compare

@SwiftArchitect SwiftArchitect released this 06 Dec 03:24

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

Choose a tag to compare

@SwiftArchitect SwiftArchitect released this 13 Mar 22:48

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

Choose a tag to compare

@SwiftArchitect SwiftArchitect released this 04 Mar 20:31

Fixes #6
Fixes #7