This is a simple button with a circle at right, who will animate when changing state.
- automatically draw the button and set his text
- animate the state change
Grab the files in Classes/NPButtonWithFlip
, Classes/NPFlipView
and put it in your
project.
Instanciate a new NPButtonWithFlip or get it from a Storyboard Configure the parameters:
button.setParameters(borderColor, offColor: offColor, onColor: onColor, flipOffImage: imageOff, flipOnImage: imageOn, text: "Button", textFont: textFont)
Copyright 2015 Neopixl S.A. - Apache 2.0 licence.