Skip to content

edison9888/NPFlipButton

 
 

Repository files navigation

NPButtonFlip


This is a simple button with a circle at right, who will animate when changing state.

Features

  • automatically draw the button and set his text
  • animate the state change

Installation

Grab the files in Classes/NPButtonWithFlip, Classes/NPFlipView and put it in your project.

Usage

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)

Small Print

Author

Neopixl

License


Copyright 2015 Neopixl S.A. - Apache 2.0 licence.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%