NPFlipButton 1.0.1

NPFlipButton 1.0.1

TestsTested
LangLanguage SwiftSwift
License Apache 2
ReleasedLast Release Jan 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Neopixl S.A., Yvan Moté, Glibert Axel.



NPFlipButton


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

Features

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

Installation

Embedded frameworks require a minimum deployment target of iOS 8.

To use NPFlipButton with a project targeting iOS 7, you must include the files in Classes/NPButtonWithFlip and Classes/NPFlipView directly in your project.

Usage

Import NPFlipButton

import NPFlipButton

Instantiate a new NPButtonWithFlip or get it from a Storyboard Configure the parameters:

button.setParameters(borderColor: 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.