Latest 0.1.0
Homepage https://github.com/farshadjahanmanesh/iOSLoadingButtonView
License MIT
Platforms ios 10.0
Authors

iOSLoadingButtonView

this is a small library to show loading and indicator in UIButton, colors are customizable

todo

  • [ ] animation style like appstore download button
  • [ ] make swift version

TOP_LINE

installation cocoapods

just add this line into your podfile

  pod 'loadingButtonOBJC'

or simply copy the source into your project, take a look at example project for more info

Configs

  //you can set these in interface builder or code

  // AnimationType in Interfacebuilder
  Int setAnimationType;
  (default)  NONE = 0,
    TOP_LINE = 1,
    INDICATOR = 2,
    BACKGROUND_HIGHLIGHTER = 3,
    CIRCLE_AND_TICK = 4,
    ALL = 5

  //or in code - default none
  LoadingType animationType;

  //loading color, set this in code or IB - default black
  UIColor setLoadingColor;

  //loading color, set this in code or IB - default black
  UIColor setFilledBackgroundColor;

  // indicator view color (white or gray) - default white
  BOOL setIndicatorViewDarkStyle;

start and stop loading, update percent

// just import this
#import "LBVLoadingButtonView.h"

//start
;

//stop
;

//update filling background 
;

//update circle stroke in circle mode
;

//(e.g)
[NSTimer scheduledTimerWithTimeInterval:1 repeats:true block:^(NSTimer * _Nonnull timer) {
        percent += 10;
       ;
       ;
 }];

also you can use it as a class for your buttons in interface builder, and change those options from interface builder

set class

ALL

change attributes

ALL

Latest podspec

{
    "name": "loadingButtonOBJC",
    "version": "0.1.0",
    "summary": "this button can have multiple style, showing a loading to your users while app is doing something in background.",
    "description": "you can use this button to show loading while your app is doing something in background, it has 4 styles of loading and all of them are fully customizable.'",
    "homepage": "https://github.com/farshadjahanmanesh/iOSLoadingButtonView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "farshad jahanmanesh": "[email protected]"
    },
    "source": {
        "git": "https://github.com/farshadjahanmanesh/iOSLoadingButtonView.git"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "loadingButton/LBVLoadingButtonView/*.{h,m}"
}

Pin It on Pinterest

Share This