Skip to content

UIControlEvents, Fill with alpha

Compare
Choose a tag to compare
@SwiftArchitect SwiftArchitect released this 06 Dec 03:24
· 81 commits to master since this release

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